Skip to content

Instantly share code, notes, and snippets.

@MaedahBatool
Last active June 26, 2020 16:47
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 MaedahBatool/1274ea70e7bbe707d07e66a5c9bb062b to your computer and use it in GitHub Desktop.
Save MaedahBatool/1274ea70e7bbe707d07e66a5c9bb062b to your computer and use it in GitHub Desktop.
Bash Aliases
# Reload the shell (i.e. invoke as a login shell)
alias reload="exec $SHELL -l"
alias relaod="reload" #typo addressed
alias reld="reload"
alias rld="reload"
# Create a Symlink and dump its alias to paths.
lns () {
THE_PWD=$PWD
cd ~
ln -s $THE_PWD $1
echo "alias $1='cd ~ ; cd $1'" >> ~/.bash_aliases
source ~/.bash_aliases
cd $1
echo "✅ DONE!"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment