Skip to content

Instantly share code, notes, and snippets.

@milovtim
Last active July 11, 2018 07:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milovtim/2c0d8ad17d947788bc622f7048b203d6 to your computer and use it in GitHub Desktop.
Save milovtim/2c0d8ad17d947788bc622f7048b203d6 to your computer and use it in GitHub Desktop.
milovtim bash aliases
##### ea - alias for editing aliases
#
#When setting up a new aliases file, or having creating a new file.. About every time after editing an aliases file, I source it. This alias makes editing alias a
#bit easier and they are useful right away. Note if the source failed, it will not echo "aliases sourced".
#
#Sub in gedit for your favorite editor, or alter for ksh, sh, etc.
#
alias ea='gedit ~/.bash_aliases; source ~/.bash_aliases && source $HOME/.bash_aliases && echo "aliases sourced --ok."'
#
#Clear screen
alias cls='printf "\033c"'
### GIT ###
#Checkout master branch
alias master='git checkout master'
#Python server
alias pserver="python -m SimpleHTTPServer"
alias cbcopy='xclip -selection clipboard'
alias cbpaste='xclip -selection clipboard -o'
alias gitcb='git clone $(cbpaste)'
alias timestamp='date +%s%N | cut -b1-13'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment