-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.fish
97 lines (79 loc) · 2.68 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
87
88
89
90
91
92
93
94
95
96
97
# set -gx VIM '/Users/jkrueger/Code/vimscript/runtime'
# alias vim 'nvim'
alias vim 'mvim -v'
# alias psql "'/Applications/Postgres.app/Contents/Versions/9.3/bin'/psql -p5432"
set brew_rbenv "/usr/local/var/rbenv/shims"
# put homebrew and rbenv at the front of $PATH
set -gx PATH "/usr/local/bin:/usr/local/share/npm/bin:/usr/local/var/rbenv/shims" $PATH
set -gx RBENV_ROOT "/usr/local/var/rbenv"
# ORACLE garbage
set -gx DYLD_LIBRARY_PATH "/Applications/Oracle"
set -gx LD_LIBRARY_PATH "/Applications/Oracle"
set -gx SQLPATH "/Applications/Oracle"
set -gx TNS_ADMIN "/Applications/Oracle"
set -gx ORACLE_HOME "/Applications/Oracle"
set -gx NLS_LANG "AMERICAN_AMERICA.UTF8"
set -gx PATH $PATH:$DYLD_LIBRARY_PATH
set -gx RC_ARCHS i386
set -gx INSTANT_CLIENT_DIRECTORY "/Applications/Oracle"
set -gx JRUBY_OPTS "-J-Xmx2g -J-XX:+UseConcMarkSweepGC -J-XX:MaxPermSize=512m"
# start prompt
set -xg fish_color_user magenta
set -xg fish_color_prompt blue
set -xg fish_color_pwd cyan
set -g __fish_git_prompt_show_informative_status 1
set -g __fish_git_prompt_hide_untrackedfiles 1
set -g __fish_git_prompt_color_branch yellow bold
set -g __fish_git_prompt_showupstream "informative"
set -g __fish_git_prompt_showstashstate 'yes'
set __fish_git_prompt_showupstream 'yes'
set -g __fish_git_prompt_char_upstream_ahead "↑"
set -g __fish_git_prompt_char_upstream_behind "↓"
set -g __fish_git_prompt_char_upstream_prefix ""
set -g __fish_git_prompt_char_stagedstate "●"
set -g __fish_git_prompt_char_dirtystate "Δ"
set -g __fish_git_prompt_char_stagedstate '→'
set -g __fish_git_prompt_char_stashstate '↩'
set -g __fish_git_prompt_char_untrackedfiles "…"
set -g __fish_git_prompt_char_conflictedstate "✖"
set -g __fish_git_prompt_char_cleanstate "✔"
set -g __fish_git_prompt_color_dirtystate blue
set -g __fish_git_prompt_color_stagedstate yellow
set -g __fish_git_prompt_color_invalidstate red
set -g __fish_git_prompt_color_untrackedfiles magenta
set -g __fish_git_prompt_color_cleanstate green
function fish_prompt --description 'Write out the prompt'
echo
set -l last_status $status
# User
set_color $fish_color_user
echo -n (whoami)
set_color normal
echo -n ' '
# PWD
set_color $fish_color_pwd
echo -n (pwd) # prompt_pwd for the shortened version
set_color normal
echo -n ' '
# git
printf '%s ' (__fish_git_prompt)
# rbenv
set_color green
echo -n (rbenv version-name)
set_color normal
echo
set_color $fish_color_prompt
if not test $last_status -eq 0
set_color $fish_color_error
end
echo -n '☄ '
set_color normal
end
# end prompt
# right prompt
function fish_right_prompt --description 'write out right prompt'
echo -n (date)
end
# end right prompt
# archey!!
archey