Add localip aliases for macos and arch

This commit is contained in:
Henrik Lissner 2016-11-05 01:54:47 +01:00
parent 6032b8af99
commit d34a7c1341
2 changed files with 4 additions and 0 deletions

View file

@ -10,6 +10,8 @@ alias pacu='pacaur -Syu' # upgrade
alias pacc='pacaur -Sc' # clean alias pacc='pacaur -Sc' # clean
alias paco='pacaur -Qtdq' # orphaned packages alias paco='pacaur -Qtdq' # orphaned packages
alias localip='ip route get 1 | awk {print $NF;exit}'
if (( $+commands[xclip] )); then if (( $+commands[xclip] )); then
alias y='xclip -selection clipboard -in' alias y='xclip -selection clipboard -in'
alias p='xclip -selection clipboard -out' alias p='xclip -selection clipboard -out'

View file

@ -10,6 +10,8 @@ alias br='brew'
alias bru='brew update && brew upgrade --all && brew cleanup' alias bru='brew update && brew upgrade --all && brew cleanup'
alias brc='brew cask' alias brc='brew cask'
alias localip="ipconfig getifaddr en1"
# OS X has no `md5sum`, so use `md5` as a fallback # OS X has no `md5sum`, so use `md5` as a fallback
is-callable md5sum || alias md5sum="md5" is-callable md5sum || alias md5sum="md5"
# OS X has no `sha1sum`, so use `shasum` as a fallback # OS X has no `sha1sum`, so use `shasum` as a fallback