-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.fish
49 lines (39 loc) · 1.59 KB
/
config.fish
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
fish_add_path --global /opt/homebrew/bin ~/.local/bin ~/.cargo/bin ~/.jenv/bin
set --export TERM xterm-256color
set --export EDITOR vim
set --export BAT_THEME base16-256
set --export HOMEBREW_NO_AUTO_UPDATE 1
if status is-interactive
scmpuff init -s --shell=fish --aliases=false | source
abbr --add ga git add
abbr --add gca git commit --amend
abbr --add --set-cursor gcm git commit -m '"%"'
abbr --add gco git checkout
abbr --add gd git diff
abbr --add gdc git diff --cached
abbr --add glg git log --stat
abbr --add grs git reset
# calling this ls override sets LS_COLORS
ls > /dev/null
end
set --global fish_greeting
# tide prompt
set --global tide_left_prompt_items pwd newline character
set --global tide_right_prompt_items cmd_duration status git
set --global tide_prompt_add_newline_before true
set --global tide_character_icon ❯
set --global tide_character_vi_icon_default ❮
set --global tide_character_vi_icon_replace ❮
set --global tide_character_vi_icon_visual ❮
set --global tide_pwd_color_anchors magenta
set --global tide_pwd_color_dirs blue
set --global tide_pwd_color_truncated_dirs brblack
set --global tide_git_truncation_length 256
set --global tide_git_color_branch magenta
set --global tide_git_color_upstream blue
set --global tide_git_color_staged green
set --global tide_git_color_untracked brblack
# fzf
fzf_configure_bindings --history=\cr --directory=\cff --git_log=\cfl --variables= --processes= --git_status=
set --global fzf_directory_opts --bind "ctrl-e:execute($EDITOR {} &> /dev/tty)"
set --global fzf_history_opts --with-nth=4..