Last active
January 8, 2025 15:57
-
-
Save Masterxilo/f1967743fda3a1aded56ebaff4dd097b to your computer and use it in GitHub Desktop.
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
# Add permalias command to my bash shell | |
# from | |
# https://askubuntu.com/questions/1414/how-to-create-a-permanent-alias | |
# https://askubuntu.com/a/80290/521770 | |
# | |
# installation: | |
# { curl -s https://gist.githubusercontent.com/Masterxilo/f1967743fda3a1aded56ebaff4dd097b/raw/permalias | source /dev/stdin ; source ~/.bashrc ; } | |
# | |
cat >> ~/.bashrc <<EOF | |
# usage example: | |
# permalias cls=clear | |
function permalias () | |
{ | |
alias "\$@"; | |
echo alias "\$@" >> ~/.bash_aliases | |
} | |
EOF | |
echo "installed permalias" | |
# the program is not run without an extra newline |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am getting
bash: permalias: command not found
in manjaro Linux. Any idea about that?