diff --git a/os/arch/aliases.zsh b/os/arch/aliases.zsh index 7b6c8795..836a18c0 100644 --- a/os/arch/aliases.zsh +++ b/os/arch/aliases.zsh @@ -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' diff --git a/os/macos/aliases.zsh b/os/macos/aliases.zsh index aa0d8f3d..fb5acf40 100644 --- a/os/macos/aliases.zsh +++ b/os/macos/aliases.zsh @@ -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