forked from lateefj/side
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.fish
77 lines (58 loc) · 1.03 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
set fisher_home ~/.local/share/fisherman
set fisher_config ~/.config/fisherman
. $fisher_home/config.fish
# Set SIDE_HOME env
set -xg SIDE_HOME $HOME/side
# GO
set -xg GOPATH $HOME
# Set envionment variables
set -xg PATH $PATH $HOME/bin $HOME/go/bin
# Fortran
set -xg FFLAGS -ff2c
set -x PLATFORM (uname)
switch $PLATFORM
case Linux
source $SIDE_HOME/linux.fish
case Darwin
source $SIDE_HOME/darwin.fish
end
# Mercurial
function hs
hg status
end
# Git
function gs
git status
end
# Use neovim if it exists
function which_editor
set nvim_path (which nvim)
if [ $nvim_path ]; test -x $nvim_path
echo nvim
else
echo vim
end
end
# TODO: Figure this out
function e
set cmd (which_editor)
eval $cmd $argv
end
set -U EDITOR (which_editor)
# Gui vim
function ge
switch $PLATFORM
case Linux
gvim $argv
case Darwin
mvim $argv
end
end
function fisher_install
fisher install cmorrell
end
function ll
ls -lh $argv
end
source $SIDE_HOME/prompt.fish
source $HOME/.side/config.fish