Last active
May 3, 2017 14:50
-
-
Save jdforsythe/7f3d001fed88de500600 to your computer and use it in GitHub Desktop.
.bashrc Aliases
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
# .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