-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
225d9a8
commit 0883956
Showing
5 changed files
with
70 additions
and
42 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,12 @@ | ||
#! /bin/bash | ||
|
||
if [ "$1" == "" ]; then | ||
cowsay -t "Give me a word, bitch" | ||
exit 1 | ||
fi | ||
read HIST | ||
echo "$HIST" | ||
#awk '{$1="";print $0}' "$HIST" > "$command" | ||
command=$(echo "$HIST" | awk '{$1="";print $0}') | ||
echo "alias $1='$command'">>/home/kostas/.aliases | ||
|
||
"$command" = "$(awk '{$1="";print $0}' "$HIST" )" | ||
#| cut -d' ' -f4- | ||
cowsay "$alias $1='$command' has been added to your aliases" | ||
|
||
#cowsay -t "Give me a word, bitch" | ||
|
||
#if [ $1 =="" ]; then | ||
#cowsay -t "Give me a word, bitch" | ||
#exit 1 | ||
#fi | ||
|
||
#new_alias="alias $1='$command'" | ||
#echo "${new_alias}">>~/.dotfiles/aliases | ||
|
||
#cowsay "${new_alias} has been added to your aliases" |
This file was deleted.
Oops, something went wrong.
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