darkrc/shell/alias

70 lines
1.6 KiB
Text
Raw Normal View History

2024-03-14 08:13:53 +00:00
alias bat='batcat --theme="$(bat_theme)"'
2023-03-07 09:52:39 +00:00
alias co='checkout'
2023-02-01 08:21:51 +00:00
alias e="find-edit"
2024-02-14 14:58:49 +00:00
alias fcd="cd \$(find . -type d | fzf)"
2023-02-18 21:04:00 +00:00
alias ff="find_files"
alias getclip='xclip -selection clipboard -o'
2023-03-07 09:52:39 +00:00
alias hello='echo "Hello :)"'
alias hlcat='highlight -O xterm256'
alias ll="ls -lAh"
alias ls="ls --color=auto"
alias ofw='on-file-write'
2023-03-07 09:52:39 +00:00
alias oneko='oneko -speed 20 -fg "#2f2f2f" -cursor 2 -name neko'
alias r='ranger'
2023-03-07 09:52:39 +00:00
alias ranger='source ranger'
alias rf='(f=$(tempfile); $(which ranger) --choosefiles $f; cat $f; rm $f)'
2023-03-07 09:52:39 +00:00
alias ro='(f=$(tempfile); $(which ranger) --choosefiles $f; rifle $(cat $f); rm $f)'
alias rr='$(whereis ranger | cut -d " " -f 2)'
alias sakura='oneko -bg "#ffddee" -sakura -name sakura'
2023-03-07 09:52:39 +00:00
alias setclip='xclip -selection c'
alias tmux='tmux -2'
2023-03-07 09:52:39 +00:00
alias w='watch -t -d -n 1'
alias wmu='wake-me-up'
2024-10-21 08:56:49 +00:00
alias tmfa='tmux-fzf'
2024-03-14 08:13:53 +00:00
bat_theme() {
if [ -e $HOME/.dark ]
then echo 'Monokai Extended Bright'
else echo 'Monokai Extended Light'
fi
}
if [ "$TERM_PROGRAM" = "WezTerm" ]
then wezvar() {
name="$1"; shift
value="$*"
printf "\033]1337;SetUserVar=%s=%s\007" "$name" $(echo -n "$value" | base64)
}
fi
pp() {
cd $(find-git-project $HOME/workspace "$@")
}
2023-03-07 09:52:39 +00:00
2023-06-27 06:51:53 +00:00
gfc() {
command="fadd"
unset patch
2023-06-27 06:51:53 +00:00
while test $# != 0
do
case "$1" in
--patch | -p) patch="--patch" ;;
--untracked | -u) command="faddall" ;;
2023-06-27 06:51:53 +00:00
--) shift; break ;;
*) break ;;
esac
shift
done
git $command $patch && git commit $@
2023-06-27 06:51:53 +00:00
}
2022-05-07 08:04:48 +00:00
# Funny
alias please='sudo'
2022-05-07 08:10:05 +00:00
alias qed='[ $RANDOM -ge $((32767 / 100 * 10)) ] && echo Quod Erat Demonstrandum || echo Quo Errat Demonstrator'
2023-03-07 09:52:39 +00:00
alias shit='git'
alias yeet='rm -r'
2023-09-05 07:39:03 +00:00
mcd() {
mkdir -p "$@"
2023-04-25 11:55:18 +00:00
cd "$@"
2021-06-09 08:35:17 +00:00
}