Skip to content

Commit 27db2b6

Browse files
author
NerdOfCode
committed
Fixed a bug
1 parent 721a88a commit 27db2b6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Bash/bash_shortcuts.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,22 @@ function add_shortcuts(){
2626

2727

2828
echo -e "Adding\n"
29-
echo -e '#!/bin/bash\n' | tee -a ~/$storage
29+
echo -e '#!/bin/bash' | tee -a ~/$storage
3030
echo -e '#Author: NerdOfCode' | tee -a ~/$storage
3131
echo -e '#Auto Generated by bashrc_alias.sh' | tee -a ~/$storage
3232
echo 'alias content="grep -R $1"' | tee -a ~/$storage
3333
echo 'alias kernel="uname -r"' | tee -a ~/$storage
3434
source ~/$storage
3535
sleep 2
36-
echo ""
36+
echo -e "\nNOTE: You may need to manually run 'source $storage'"
3737

3838
exit 0;}
3939
function remove_shortcuts(){
4040

4141
if [ -f ~/$storage ]
4242
then
4343
echo -e "Removing\n"
44-
rm $storage
44+
rm ~/$storage
4545
exit 0
4646
fi
4747
echo "The shortcuts arent installed"

0 commit comments

Comments
 (0)