-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.fish
More file actions
47 lines (34 loc) · 928 Bytes
/
config.fish
File metadata and controls
47 lines (34 loc) · 928 Bytes
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
# Variables
set confdir ~/.config/fish/
# Options
set fish_greeting
set -x EDITOR vim
set -x LANG "en_US.UTF-8"
# if running on nixos
if command -q nixos-version
set -x PATH /run/wrappers/bin /home/$USER/.nix-profile/bin /nix/profile/bin /home/$USER/.local/state/nix/profile/bin /etc/profiles/per-user/$USER/bin /nix/var/nix/profiles/default/bin /run/current-system/sw/bin
else
set -x PATH /usr/local/bin /usr/bin /bin /usr/sbin /sbin /usr/local/sbin
end
# https://github.com/fish-shell/fish-shell/issues/6950
set -g fish_escape_delay_ms 300
# Local source
#
if test -r ~/.fish.local
source ~/.fish.local
end
# Completions
set -l completions_vendor /usr/local/share/fish/vendor_completions.d/*
for completion in $completions_vendor
source $completion
end
# custom.d
#
for custom in $confdir/custom.d/*.fish
source $custom
end
# conf.d
#
if test -d $confdir/conf.d/
source $confdir/conf.d/*.fish
end