-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.fishrc
56 lines (53 loc) · 1.21 KB
/
.fishrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#PATH---{{{
set -x PATH $HOME/.dub/packages/.bin/dls-latest $PATH
set -x PATH $HOME/go/bin/ $PATH
#---}}}
#vim mode settings---{{{
function fish_user_key_bindings
for mode in insert default visual
fish_default_key_bindings -M $mode
end
fish_vi_key_bindings --no-erase
end
#---}}}
# alias---{{{
alias proxy-settings="sudo nvim /etc/environment"
alias bd="cd .."
alias dnvim="cd ~/.config/nvim"
alias setvim="nvim ~/.config/nvim/init.vim"
alias dtoml="cd ~/.config/nvim/toml"
alias dtemplate="cd ~/.config/nvim/template"
alias ivm="/usr/local/bin/vim"
alias vim="/usr/local/bin/vim"
alias vi="/usr/local/bin/vim"
alias sudo="sudo -E"
alias reshell "exec $SHELL"
# }}}
# mkcmmt {{{
function mkcmmt
switch $argv[1]
case "-a"
git commit -m "[add] $argv[2]"
case "-c"
git commit -m "[change] $argv[2]"
case "-r"
git commit -m "[remove] $argv[2]"
case "-f"
git commit -m "[fix] $argv[2]"
case "-hf"
git commit -m "[clean] $argv[2]"
case "-u"
git commit -m "[update] $argv[2]"
end
end
# }}}
# dopush {{{
function dopush
set _nowBranch (git branch | grep '*' | awk '{print $2}')
git push origin $_nowBranch
end
# }}}
set GHQ_SELECTOR fzf
function fish_user_key_bindings
bind \cr peco_select_history
end