Fixed errors in if statements in aliases file
This commit is contained in:
parent
96948d4471
commit
96d7a4c88a
|
@ -7,7 +7,7 @@
|
|||
|
||||
|
||||
# some more ls aliases
|
||||
echo "*** Processing Alias File ***
|
||||
echo "*** Processing Alias File ***"
|
||||
if [ $HOSTNAME != 'tilde' ]
|
||||
then
|
||||
alias ls='lsd'
|
||||
|
@ -21,11 +21,12 @@ alias man='batman'
|
|||
|
||||
alias ll='ls -alF'
|
||||
alias la='ls -a'
|
||||
|
||||
# alias l='ls -CF'
|
||||
|
||||
# Add an "alert" alias for long running commands. Use like so:
|
||||
# sleep 10; alert
|
||||
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
||||
# alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
||||
|
||||
alias cls='clear'
|
||||
|
||||
|
@ -57,20 +58,26 @@ alias ni='nvim'
|
|||
|
||||
|
||||
# apt aliass
|
||||
alias aptud='sudo apt update'
|
||||
alias aptudls='sudo apt list --upgradeable'
|
||||
alias aptug='sudo apt upgrade'
|
||||
alias aptin='sudo apt install'
|
||||
# These should not be on tilde.team, need to if them out
|
||||
if [ $HOSTNAME != 'tilde' ]; then
|
||||
alias aptud='sudo apt update'
|
||||
alias aptudls='sudo apt list --upgradeable'
|
||||
alias aptug='sudo apt upgrade'
|
||||
alias aptin='sudo apt install'
|
||||
fi
|
||||
|
||||
|
||||
# fun stuff
|
||||
alias cowls='ls|cowsay|lolcat'
|
||||
|
||||
#alias gaycow='cowsay $1|lolcat'
|
||||
|
||||
# Trying to make it so Ben doesn't have to email when I try to sudo on Tilde.team
|
||||
if [ $HOSTNAME == 'tilde' ]
|
||||
then
|
||||
if [ $HOSTNAME == 'tilde' ]; then
|
||||
alias sudo="echo 'Wrong machine butt head'"
|
||||
alias pf="fzf --preview='batcat -n {}' --bind shift-up:preview-page-up,shift-down:preview-page-down"
|
||||
alias sd="cd ~ && cd \$(find * -type d | fzf)"
|
||||
fi
|
||||
|
||||
alias pf="fzf --preview='batcat -n {}' --bind shift-up:preview-page-up,shift-down:preview-page-down"
|
||||
alias sd="cd ~ && cd \$(find * -type d | fzf)"
|
||||
echo "**** End of Alias file ****"
|
||||
|
||||
|
|
Loading…
Reference in New Issue