Last active
April 10, 2020 18:59
-
-
Save jbarciela/1b5cfe16cf3456f9c8ae6aa0b485234c to your computer and use it in GitHub Desktop.
My simple ~/.bash_profile
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
| # | |
| # 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