shoestrap/assets/default/fish/init/alias.fish

52 lines
1.3 KiB
Fish
Raw Normal View History

# vim
2020-10-02 19:40:17 +00:00
abbr --global --add nv nvim
abbr --global --add tv tmux-vim
abbr --global --add :q exit
# git
2020-10-02 19:40:17 +00:00
abbr --global --add ga git add
abbr --global --add gc git commit
abbr --global --add gco git checkout
abbr --global --add gd git diff
abbr --global --add gl git log
abbr --global --add gr git rebase
abbr --global --add gs git status
abbr --global --add tiga tig --all
# cd
2020-10-02 19:40:17 +00:00
abbr --global --add cd.. cd ..
# vim
2020-10-02 19:40:17 +00:00
abbr --global --add mviml env VIM_COLOR=github mvim
# terminal-notifier
2020-10-02 19:40:17 +00:00
abbr --global --add notify-done terminal-notifier -message "Done"
abbr --global --add notify-success terminal-notifier -message "Success"
abbr --global --add notify-fail terminal-notifier -message "Failure"
2016-01-27 22:59:15 +00:00
function sh-notify
[ $status = 0 ] ;and notify-success ;or notify-fail
end
# gopush
2020-10-02 19:40:17 +00:00
abbr --global --add pb-done pb "Done"
abbr --global --add pb-success pb "Success"
abbr --global --add pb-failure pb "Failure"
2016-01-27 22:59:15 +00:00
function pb-notify
[ $status = 0 ] ;and pb-success ;or pb-failure
end
2022-01-27 20:36:28 +00:00
# notify-to-slack
abbr --global --add ns-done notify-to-slack Done
abbr --global --add ns-success notify-to-slack Success
abbr --global --add ns-failure notify-to-slack Failure
function ns-notify
notify-to-slack --status $status "Done"
end
2022-04-05 17:29:05 +00:00
# kitty aliases
if [ "$TERM" = "xterm-kitty" ]
alias ssh="kitty +kitten ssh"
alias imgcat="kitty +kitten icat"
end