aboutsummaryrefslogtreecommitdiff
path: root/config/fish/config.fish
blob: 26e22fd6374d586ad1e67e523e70590baf13827e (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
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
# PATH Stuff

# include cargo binaries
if type -q multirust
    for p in $HOME/.multirust/toolchains/*/cargo/bin
        if not contains $p $PATH
            set PATH $PATH $p
        end
    end
end

#include go binaries
set -x GOPATH ~/Desktop/projects/go

if not contains $GOPATH/bin $PATH
    set PATH $GOPATH/bin $PATH
end

if not contains /bin/core_perl $PATH
    set PATH /bin/core_perl $PATH
end

if not contains ~/.local/bin $PATH
    set PATH ~/.local/bin $PATH 
end

if not contains /usr/local/bin $PATH
    set PATH /usr/local/bin $PATH 
end

# export the path to our dotfiles
set -x DOTFILES_LOCATION (get_dotfiles_location)

# autoload functions and completions in .dotfiles 
set fish_function_path $DOTFILES_LOCATION/config/fish/functions $fish_function_path
set fish_complete_path $DOTFILES_LOCATION/config/fish/completions $fish_complete_path


# add git-alias subdirectory to functions path
set fish_function_path $DOTFILES_LOCATION/config/fish/functions/git-alias $fish_function_path


set -x __fish_git_prompt_show_informative_status true

set -x MPD_PORT 6601

if type -q vis
set -x EDITOR vis
else
set -x EDITOR vim
end

set -x VISUAL $EDITOR

set -x BROWSER qutebrowser

set -x SSH_KEY_PATH $HOME/.ssh/rsa_id

# set yaourt specific VARS
if type -q yaourt
    if not set -q AURUSEGIT
        set -x AURUSEGIT 1
    end
    if not set -q AURSHOWDIFF
        set -x AURSHOWDIFF 1
    end
end