Last active
June 26, 2020 16:47
-
-
Save MaedahBatool/1274ea70e7bbe707d07e66a5c9bb062b to your computer and use it in GitHub Desktop.
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
# 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