2020-09-26 00:23:17 +00:00
|
|
|
# _ _ _ _
|
|
|
|
# | |__ __ _ ___| |__ __ _| (_) __ _ ___ ___ ___
|
|
|
|
# | '_ \ / _` / __| '_ \ / _` | | |/ _` / __|/ _ \/ __|
|
|
|
|
# _| |_) | (_| \__ \ | | | | (_| | | | (_| \__ \ __/\__ \
|
|
|
|
# (_)_.__/ \__,_|___/_| |_|___\__,_|_|_|\__,_|___/\___||___/
|
|
|
|
# |_____|
|
|
|
|
|
|
|
|
|
2020-09-07 02:49:16 +00:00
|
|
|
# some more ls aliases
|
2023-06-23 13:54:27 +00:00
|
|
|
echo "*** Processing Alias File ***"
|
2022-09-08 23:07:27 +00:00
|
|
|
if [ $HOSTNAME != 'tilde' ]
|
2022-09-02 20:06:00 +00:00
|
|
|
then
|
|
|
|
alias ls='lsd'
|
2023-04-20 16:07:31 +00:00
|
|
|
|
2022-09-02 20:06:00 +00:00
|
|
|
fi
|
2022-10-12 18:08:07 +00:00
|
|
|
|
2023-04-20 16:07:31 +00:00
|
|
|
# Ben installed batcat on tilde.team, so moving this down here
|
|
|
|
# bat, cat with wings
|
|
|
|
alias cat='batcat'
|
2023-11-16 17:21:42 +00:00
|
|
|
# alias man='batman'
|
|
|
|
export MANPAGER="sh -c 'col -bx | batcat -l man -p'"
|
2023-04-20 16:07:31 +00:00
|
|
|
|
2020-09-07 02:49:16 +00:00
|
|
|
alias ll='ls -alF'
|
2020-10-01 21:36:27 +00:00
|
|
|
alias la='ls -a'
|
2023-06-23 13:54:27 +00:00
|
|
|
|
2020-10-01 21:36:27 +00:00
|
|
|
# alias l='ls -CF'
|
2020-09-07 02:49:16 +00:00
|
|
|
|
|
|
|
# Add an "alert" alias for long running commands. Use like so:
|
|
|
|
# sleep 10; alert
|
2023-06-23 13:54:27 +00:00
|
|
|
# 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$//'\'')"'
|
2020-09-07 02:49:16 +00:00
|
|
|
|
|
|
|
alias cls='clear'
|
|
|
|
|
|
|
|
alias ..='cd ..'
|
|
|
|
alias ...='cd ../..'
|
|
|
|
|
|
|
|
# Git alias
|
|
|
|
|
|
|
|
alias gs='git status'
|
|
|
|
alias gc='git commit -m'
|
|
|
|
alias ga='git add'
|
2020-10-01 21:36:27 +00:00
|
|
|
alias gd='git diff'
|
|
|
|
alias gac='git commit -a'
|
2022-05-15 15:28:45 +00:00
|
|
|
alias gco='git checkout'
|
|
|
|
alias gm='git merge'
|
|
|
|
alias gb='git branch'
|
2020-09-07 02:49:16 +00:00
|
|
|
|
|
|
|
# vi and nvim aliases
|
|
|
|
|
2023-05-29 13:09:39 +00:00
|
|
|
alias vim='nvim'
|
|
|
|
alias vi='nvim'
|
2020-09-07 02:49:16 +00:00
|
|
|
alias ni='nvim'
|
2020-09-08 22:27:41 +00:00
|
|
|
|
|
|
|
# bat, cat with wings
|
2022-10-04 16:58:27 +00:00
|
|
|
# some systems install it as bat or batcat, should test to see which one is installed
|
|
|
|
[ -f /usr/bin/bat ] && alias cat='bat'
|
|
|
|
[ -f /usr/bin/batcat] && alias cat='batcat'
|
2022-05-15 15:28:45 +00:00
|
|
|
|
2022-10-12 18:08:07 +00:00
|
|
|
|
|
|
|
|
2022-05-15 15:28:45 +00:00
|
|
|
# apt aliass
|
2023-06-23 13:54:27 +00:00
|
|
|
# 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
|
|
|
|
|
2022-10-04 16:58:27 +00:00
|
|
|
|
|
|
|
# fun stuff
|
|
|
|
alias cowls='ls|cowsay|lolcat'
|
2023-06-23 13:54:27 +00:00
|
|
|
|
2022-10-13 12:48:53 +00:00
|
|
|
#alias gaycow='cowsay $1|lolcat'
|
2022-11-13 21:13:41 +00:00
|
|
|
|
|
|
|
# Trying to make it so Ben doesn't have to email when I try to sudo on Tilde.team
|
2023-06-23 13:54:27 +00:00
|
|
|
if [ $HOSTNAME == 'tilde' ]; then
|
2022-11-13 21:13:41 +00:00
|
|
|
alias sudo="echo 'Wrong machine butt head'"
|
2023-06-23 13:54:27 +00:00
|
|
|
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)"
|
2022-11-13 21:13:41 +00:00
|
|
|
fi
|
|
|
|
|
2023-06-23 13:54:27 +00:00
|
|
|
echo "**** End of Alias file ****"
|
|
|
|
|