Skip to content

Instantly share code, notes, and snippets.

@jbarciela
Last active April 10, 2020 18:59
Show Gist options
  • Select an option

  • Save jbarciela/1b5cfe16cf3456f9c8ae6aa0b485234c to your computer and use it in GitHub Desktop.

Select an option

Save jbarciela/1b5cfe16cf3456f9c8ae6aa0b485234c to your computer and use it in GitHub Desktop.
My simple ~/.bash_profile
#
# simple ~/.bash_profile mostly for macOS
#
PS1='$(pwd) $ '
alias l='ls -G'
alias ll='ls -laG'
alias h='history|less'
alias gg='./gradlew'
alias e='atom'
# tree: show hidden files and output in color
# less: read correctly the color codes from tree
alias tl='tree -aC|less -R'
alias ep='e ~/.bash_profile'
alias lp='source ~/.bash_profile'
# who is listening on port ... (macOS)
# https://askubuntu.com/questions/626458/can-i-pass-arguments-to-an-alias-command
wl () {
port=${1:-8080}
lsof -nP -iTCP:$port | grep LISTEN
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment