aboutsummaryrefslogtreecommitdiffstats
path: root/_config/fish/config.fish
blob: 24151d5aeb10e5c833f805526924e8cf774085df (plain)
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
#
# ~/.config/fish/config.fish
#
#
# Aaron LI
# 2015-09-26
#

# vi mode
fish_vi_mode

set -U EDITOR vim

## PATH
# ~/bin
if test -d $HOME/bin
    set -U fish_user_paths $HOME/bin $fish_user_paths
end
# admin paths
if groups | grep -qE '\b(wheel|adm|sudo)\b'
    set -U fish_user_paths $fish_user_paths /usr/local/sbin /usr/sbin /sbin
end

# local config
set -l localconfig "$HOME/.config/fish/config.local.fish"
if test -f $localconfig
    source $localconfig
end

# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=fish: #