Skip to content

Instantly share code, notes, and snippets.

@jdforsythe
Last active May 3, 2017 14:50
Show Gist options
  • Save jdforsythe/7f3d001fed88de500600 to your computer and use it in GitHub Desktop.
Save jdforsythe/7f3d001fed88de500600 to your computer and use it in GitHub Desktop.
.bashrc Aliases
# .bashrc
# alias for "d2u <filename>" which converts line endings from dos to unix using sed
alias d2u='function _d2u(){ echo "Converting line endings from Dos2Unix."; sed -i "s/\r$//" "$1"; };_d2u'
# alias for "untar" which executes "tar -xvf" to extract a tarball
alias untar='tar -xvf'
# alias for "tarball" which executes "tar cvzf" to create a tarball
alias targz='tar cvzf'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment