-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.fish
70 lines (56 loc) · 1.47 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
set normal (set_color normal)
set magenta (set_color magenta)
set yellow (set_color yellow)
set green (set_color green)
set red (set_color red)
set gray (set_color -o black)
# Fish git prompt
set __fish_git_prompt_showdirtystate 'yes'
set __fish_git_prompt_showstashstate 'yes'
set __fish_git_prompt_showuntrackedfiles 'yes'
set __fish_git_prompt_showupstream 'yes'
set __fish_git_prompt_color_branch normal
set __fish_git_prompt_color_upstream_ahead green
set __fish_git_prompt_color_upstream_behind red
# Status Chars
set __fish_git_prompt_char_dirtystate '⚡'
set __fish_git_prompt_char_stagedstate '→'
set __fish_git_prompt_char_untrackedfiles '☡'
set __fish_git_prompt_char_stashstate '↩'
set __fish_git_prompt_char_upstream_ahead '+'
set __fish_git_prompt_char_upstream_behind '-'
function fish_prompt
set last_status $status
set_color -o black
printf '%s' (prompt_pwd)
set_color normal
printf '%s ' (__fish_git_prompt)
set_color normal
end
# Environment variables
set -x TERM screen-256color-bce
set -x BUNDLER_EDITOR vim
set -x EDITOR vim
set -x FZF_DEFAULT_COMMAND 'ag --hidden --ignore .git -g ""'
# Functions & aliases
function st
command git status $argv
end
function be
command bundle exec $argv
end
function bo
command bundle open $argv
end
function bi
command bundle install $argv
end
function g
command git $argv
end
function tmux
env TERM=screen-256color-bce tmux $argv
end
function zv
command fzf | read -l result; and vim $result
end