feat: remade scripts to be simpler
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#MacOS aliases
|
||||
|
||||
# Brew Aliases
|
||||
alias bupd="brew update && brew upgrade"
|
||||
alias bi="brew install"
|
||||
alias bs="brew search"
|
||||
alias bu="brew uninstall"
|
||||
|
||||
alias reboot="sudo reboot"
|
||||
alias shutdown="sudo shutdown now"
|
||||
alias diskUsage='du -sh * | gsort -h'
|
||||
alias ofd="open ."
|
||||
alias showfiles="defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app"
|
||||
alias hidefiles="defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app"
|
||||
|
||||
# IP alias and functions
|
||||
alias ip="ifconfig -a | egrep -A 7 '^en0' | grep inet | grep -oE '((1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\.){3}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])' | head -n 1"
|
||||
alias myip="curl -s http://checkip.dyndns.org/ | sed 's/[a-zA-Z<>/ :]//g'"
|
||||
Reference in New Issue
Block a user