feat: remade scripts to be simpler

This commit is contained in:
2026-03-28 22:26:19 +00:00
commit a39315d77c
24 changed files with 879 additions and 0 deletions
+18
View File
@@ -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'"