aboutsummaryrefslogtreecommitdiff
path: root/config/fish/config.fish
blob: c6f1b061cf481784627d703c41acaa64ce04d48d (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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# 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
if type -q go
	set -x GOPATH ~/Desktop/projects/go

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

# include guix paths
if type -q guix
	for p in /home/fischerling/.guix-profile/bin /run/setuid-programs /run/current-system/profile/bin /run/current-system/profile/sbin
		if not contains $p $PATH
			set PATH $PATH $p
		end
	end
end

# guixsd has nether /bin nor /usr
# TODO find a  better way to check if we are on guixsd
if not type -q guix
	if not contains /bin/core_perl $PATH
	    set PATH /bin/core_perl $PATH
	end

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

if not contains ~/.local/bin $PATH
    set PATH ~/.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