-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.fish
86 lines (73 loc) · 2.43 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# fish to vim!
fish_vi_key_bindings
# For hg and git
set -gx EDITOR vim
# z search!
. ~/dot_files/z.fish
# add aws cli to path
if test -d ~/.local/bin
set PATH $PATH ~/.local/bin # ubuntu
end
if test -d /usr/local/Cellar/node/10.6.0/bin/
set PATH $PATH /usr/local/Cellar/node/10.6.0/bin/
end
if test -d ~/Library/Python/2.7/bin
set PATH $PATH ~/Library/Python/2.7/bin # osx
end
if test -d ~/bin
set PATH $PATH ~/bin # bazel
end
# add linux brew to path
if test -d ~/.local/bin
set PATH $PATH /home/linuxbrew/.linuxbrew/bin
end
# fzf to use ripgrep
set FZF_DEFAULT_COMMAND 'rg --files --no-ignore --hidden --follow --glob "!.git/*"'
alias notes "vim ~/Dropbox/notes"
#
# ADD GIT BRANCH
#
#function fish_prompt --description 'Write out the prompt'
# # Just calculate these once, to save a few cycles when displaying the prompt
# if not set -q __fish_prompt_hostname
# set -g __fish_prompt_hostname (hostname|cut -d . -f 1)
# end
#
# if not set -q __fish_prompt_normal
# set -g __fish_prompt_normal (set_color normal)
# end
#
# if not set -q __git_cb
# set __git_cb ":"(set_color brown)(git branch ^/dev/null | grep \* | sed 's/* //')(set_color normal)""
# end
#
# switch $USER
#
# case root
#
# if not set -q __fish_prompt_cwd
# if set -q fish_color_cwd_root
# set -g __fish_prompt_cwd (set_color $fish_color_cwd_root)
# else
# set -g __fish_prompt_cwd (set_color $fish_color_cwd)
# end
# end
#
# printf '%s@%s:%s%s%s%s# ' $USER $__fish_prompt_hostname "$__fish_prompt_cwd" (prompt_pwd) "$__fish_prompt_normal" $__git_cb
#
# case '*'
#
# if not set -q __fish_prompt_cwd
# set -g __fish_prompt_cwd (set_color $fish_color_cwd)
# end
#
# printf '%s@%s:%s%s%s%s$ ' $USER $__fish_prompt_hostname "$__fish_prompt_cwd" (prompt_pwd) "$__fish_prompt_normal" $__git_cb
#
# end
#end
# tabtab source for serverless package
# uninstall by removing these lines or running `tabtab uninstall serverless`
#[ -f /usr/local/lib/node_modules/serverless/node_modules/tabtab/.completions/serverless.fish ]; and . /usr/local/lib/node_modules/serverless/node_modules/tabtab/.completions/serverless.fish
# tabtab source for sls package
# uninstall by removing these lines or running `tabtab uninstall sls`
#[ -f /usr/local/lib/node_modules/serverless/node_modules/tabtab/.completions/sls.fish ]; and . /usr/local/lib/node_modules/serverless/node_modules/tabtab/.completions/sls.fish