2015-11-03 23:04:57 +00:00
|
|
|
# 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
|
2015-11-03 23:04:57 +00:00
|
|
|
|
|
|
|
# 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
|
2015-11-03 23:04:57 +00:00
|
|
|
|
|
|
|
# cd
|
2020-10-02 19:40:17 +00:00
|
|
|
abbr --global --add cd.. cd ..
|
2015-11-03 23:04:57 +00:00
|
|
|
|
|
|
|
# vim
|
2020-10-02 19:40:17 +00:00
|
|
|
abbr --global --add mviml env VIM_COLOR=github mvim
|
2015-11-03 23:04:57 +00:00
|
|
|
|
|
|
|
# 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"
|
2015-11-03 23:04:57 +00:00
|
|
|
|
2016-01-27 22:59:15 +00:00
|
|
|
function sh-notify
|
|
|
|
[ $status = 0 ] ;and notify-success ;or notify-fail
|
|
|
|
end
|
2015-11-03 23:04:57 +00:00
|
|
|
|
|
|
|
# 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
|