Add localip aliases for macos and arch
This commit is contained in:
parent
6032b8af99
commit
d34a7c1341
|
@ -10,6 +10,8 @@ alias pacu='pacaur -Syu' # upgrade
|
|||
alias pacc='pacaur -Sc' # clean
|
||||
alias paco='pacaur -Qtdq' # orphaned packages
|
||||
|
||||
alias localip='ip route get 1 | awk {print $NF;exit}'
|
||||
|
||||
if (( $+commands[xclip] )); then
|
||||
alias y='xclip -selection clipboard -in'
|
||||
alias p='xclip -selection clipboard -out'
|
||||
|
|
|
@ -10,6 +10,8 @@ alias br='brew'
|
|||
alias bru='brew update && brew upgrade --all && brew cleanup'
|
||||
alias brc='brew cask'
|
||||
|
||||
alias localip="ipconfig getifaddr en1"
|
||||
|
||||
# OS X has no `md5sum`, so use `md5` as a fallback
|
||||
is-callable md5sum || alias md5sum="md5"
|
||||
# OS X has no `sha1sum`, so use `shasum` as a fallback
|
||||
|
|
Loading…
Reference in a new issue