We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 721a88a commit 27db2b6Copy full SHA for 27db2b6
1 file changed
Bash/bash_shortcuts.sh
@@ -26,22 +26,22 @@ function add_shortcuts(){
26
27
28
echo -e "Adding\n"
29
- echo -e '#!/bin/bash\n' | tee -a ~/$storage
+ echo -e '#!/bin/bash' | tee -a ~/$storage
30
echo -e '#Author: NerdOfCode' | tee -a ~/$storage
31
echo -e '#Auto Generated by bashrc_alias.sh' | tee -a ~/$storage
32
echo 'alias content="grep -R $1"' | tee -a ~/$storage
33
echo 'alias kernel="uname -r"' | tee -a ~/$storage
34
source ~/$storage
35
sleep 2
36
- echo ""
+ echo -e "\nNOTE: You may need to manually run 'source $storage'"
37
38
exit 0;}
39
function remove_shortcuts(){
40
41
if [ -f ~/$storage ]
42
then
43
echo -e "Removing\n"
44
- rm $storage
+ rm ~/$storage
45
exit 0
46
fi
47
echo "The shortcuts arent installed"
0 commit comments