Last active
November 10, 2023 23:20
-
-
Save p4yl0ad/3f8dd519754e3424573131045ceadc67 to your computer and use it in GitHub Desktop.
macOS bashrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# chsh -s /bin/bash | |
# Settings -> Users & Groups -> Right Click User -> | |
# MISC ALIAS COMMANDS | |
alias dir='ls -lah' | |
alias ls='ls -lah' | |
alias ipconfig='ifconfig' | |
alias cls='clear' | |
# MISC USEFUL SHORTCUTS | |
alias ports='sudo lsof -i -P | grep LISTEN | grep :$PORT' | |
alias src='source $HOME/.bashrc' | |
alias whatsmyip='ifconfig | grep "inet " | grep -v 127.0.0.1 | cut -d\ -f2' | |
alias pubip='curl ifconfig.so' | |
alias ports='netstat -an | grep LISTEN' | |
alias sports='sudo lsof -i -P | grep -i "listen"' | |
alias processes='ps -eo user,pid,uid,gid,tty,command' | |
alias xclip='pbcopy' | |
alias cputemp='sudo powermetrics –samplers smc |grep -i "CPU die temperature."' | |
alias entitlements='codesign -dv --entitlements -' | |
alias entits=entitlements | |
# web servers | |
alias server8080='ls -lah && whatsmyip && python3 -m http.server 8080' | |
alias server6969='ls -lah && whatsmyip && python3 -m http.server 6969' | |
. "$HOME/.cargo/env" | |
export PS1="\[\033[35m\]\t\[\033[m\]-\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " | |
export BASH_SILENCE_DEPRECATION_WARNING=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment