darkrc/shell/alias

44 lines
1.4 KiB
Text
Raw Normal View History

2021-02-19 07:39:37 +00:00
alias ls="ls --color=auto"
2022-05-07 08:04:48 +00:00
alias ll="ls -lAh"
alias gcd="source git-cd"
alias g="source cd-improved"
alias gg="builtin cd $HOME; g ."
alias hello='echo "Hello :)"'
alias w='watch -t -d -n 1'
alias setclip='xclip -selection c'
alias getclip='xclip -selection clipboard -o'
alias r='ranger'
alias rr='(ranger)'
alias ro='(f=$(tempfile); $(which ranger) --choosefiles $f; rifle $(cat $f); rm $f)'
alias rf='(f=$(tempfile); $(which ranger) --choosefiles $f; cat $f; rm $f)'
alias oneko='oneko -speed 20 -fg "#2f2f2f" -cursor 2 -name neko'
alias sakura='oneko -bg "#ffddee" -sakura -name sakura'
alias tmux='tmux -2'
alias pi='ssh pi -t ''tmux a -t home \|\| tmux new-session -s home'''
alias server='ssh server -t ''tmux a -t home \|\| tmux new-session -s home'''
alias ltc='getclip | luac -l -'
alias sign='gpg --armor --no-version --detach-sign --local-user darkwiiplayer'
alias workspace='cd ~/workspace'
alias ranger='source ranger'
alias ta='tmux a -t'
alias co='checkout'
alias qed='[ $RANDOM -ge $((32767 / 100 * 10)) ] && echo Quod Erat Demonstrandum || echo Quo Errat Demonstrator'
alias u='unicode'
alias hlcat='highlight -O xterm256'
alias ofw='on_file_write'
2021-10-05 12:19:00 +00:00
alias amend='git commit --amend'
2022-05-07 08:04:48 +00:00
# Funny
alias yeet='rm -r'
alias please='sudo'
alias shit='git'
mg() {
mkdir -p "$@"
source cd-improved "$1"
}
2021-06-09 08:35:17 +00:00
git-mg() {
mkdir -p "$@"
cd "$1"
git init
source cd-improved "."
}