Skip to content

Instantly share code, notes, and snippets.

@shivergard
Last active December 28, 2015 02:19
Show Gist options
  • Save shivergard/7427211 to your computer and use it in GitHub Desktop.
Save shivergard/7427211 to your computer and use it in GitHub Desktop.
Create Quick Alias adding command
#!/bin/sh
if [ ! -f ~/.alias ]
then
echo "source ~/.alias" >> ~/.bashrc
echo "#This must stay at END" > ~/.alias
echo "alias realias='unalias -a;source ~/.alias'" > ~/.alias
echo "alias alias='nano ~/.alias;realias;'" >> ~/.alias
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment