Last active
July 11, 2018 07:37
-
-
Save milovtim/2c0d8ad17d947788bc622f7048b203d6 to your computer and use it in GitHub Desktop.
milovtim bash aliases
This file contains 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
##### 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