Last active
August 29, 2015 14:12
-
-
Save jsafrit/142c18bf14ee81abf057 to your computer and use it in GitHub Desktop.
Custom bash alias file
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
| # some more ls aliases | |
| alias ll='ls -alF' | |
| alias more='less' | |
| alias la='ls -A' | |
| alias l='ls -CF' | |
| alias h="history" | |
| alias gno="gnome-open" | |
| alias pu="pushd" | |
| alias po="popd" | |
| alias updateme='sudo apt-get update && sudo apt-get upgrade' | |
| # git aliases | |
| alias g="git " | |
| alias gs="git status " | |
| alias gh="git hist " | |
| alias ga="git add " | |
| alias gg="gitg " | |
| function screen-ls { | |
| screen -ls | |
| if [[ $STY ]]; then | |
| echo -e "\033[1mCurrently in screen $STY\033[0m" | |
| # echo -e '\E[37;44m'"\033[1mCurrently in screen $STY\033[0m" | |
| # else | |
| # echo "Not currently in a screen." | |
| fi | |
| } | |
| function ws { if [[ $STY ]]; then echo "On screen: $STY"; fi; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment