.zshrc

This is an example of what my zshell configuration file(.zshrc) looks like:

# prompt stuff
PROMPT='%F{cyan}%n%f@%F{green}%m%f:%F{magenta}%~%f$ '
export CLICOLOR=1
export LSCOLORS="fxfxcxdxbxegedabagacad"

# colorize the ls output
alias ls='ls --color=auto'
 
## Use a long listing format ##
alias ll='ls -la'

# misc
alias o='open -a Finder ./'                 # f           Opens current directory in MacOS Finder
alias c='clear'                             # c           Clear terminal display
alias h='history'                           # h           show history
alias g='grep --color=auto'                 # g           Short for grep
alias p='ping 8.8.8.8'                      # p           Ping googles public dns
alias l='ls -alh'                           # l           list files and directories in human readable format
alias ch='history -c'                       # hc          Clear history

alias show="ps aux | grep -v grep | grep -i -e VSZ -e" # searches our process for an argument we'll pass:

# various
alias rmd='rm -rf'
alias less='less -FSRXc'                    # Preferred 'less' implementation
alias copy="pbcopy"

# listing usb devices that are plugged in
alias listusbnames="ioreg -p IOUSB -w0 | sed 's/[^o]*o //; s/@.*$//' | grep -v '^Root.*'"
alias lsusb='system_profiler SPUSBDataType && listusbnames'
alias lsports="networksetup -listallhardwareports"

# serial ports
alias serial='ls -al /dev/{tty,cu}.*'
 
# Listing network information
alias mac="ifconfig en0 | awk '/ether/{print \$2}'"
alias ip='ipconfig getifaddr en0'

# Turn wifi interface on/off
alias wifion='networksetup -setairportpower en0 on'
alias wifioff='networksetup -setairportpower en0 off'
alias wifi='wifioff && wifion'

# make executable
alias cx='chmod +x'

# json formatter
alias json='python -m json.tool'

alias path='echo -e ${PATH//:/\\n}'

# grep
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'

# calculator
alias bc='bc -l'