summaryrefslogtreecommitdiff
path: root/fish/config.fish
blob: 77937a50d629071311420c05f1e012908d8c5aea (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
# system paths
set -gx PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

# alias
alias c="clear"
alias h="history"
alias gpg-agent-restart="gpg-connect-agent reloadagent /bye"
alias glhut="hut --config=$HOME/.grokloc/.config/hut/config"
alias format-patch="git format-patch --subject-prefix="PATCH" -o ~/patches HEAD^"

if status is-interactive
    # locale
    set -gx LANG en_US.UTF-8
    set -gx LC_ALL en_US.UTF-8

    # history
    set -gx HISTFILE $HOME/.histfile
    set -gx HISTSIZE 10000
    set -gx SAVEHIST 10000

    # default editor
    set -gx EDITOR nvim
    set -gx ALTERNATE_EDITOR nvim
    set -gx VISUAL nvim

    # gnupg
    set -gx GPG_TTY (tty)
    gpg-connect-agent updatestartuptty /bye >/dev/null

    clear
end

# local bin
set -gx PATH $HOME/bin $PATH

# pager
set -gx PAGER bat

# go
set -gx PATH $HOME/go/bin $PATH

# cargo/rust
set -gx PATH $HOME/.cargo/bin $PATH

# grokloc-related
set -gx REPOSITORY_BASE /tmp
set -gx POSTGRES_APP_URL postgres://grokloc:grokloc@localhost:5432/app

# ui
starship init fish | source

# rakubrew
$HOME/.rakubrew/bin/rakubrew init Fish | source
set -gx PATH $HOME/.rakubrew/bin $PATH
set -gx RAKUBREW_HOME $HOME/.rakubrew

# perl vars
set -gx PERL_UNICODE AS
set -gx PERL_READLINE_NOWARN yes
set -gx PERL5LIB $HOME/perl5/lib/perl5


# perlbrew, if used
if test -e $HOME/perl5/perlbrew/etc/perlbrew.fish
    source $HOME/perl5/perlbrew/etc/perlbrew.fish
end

# perl paths
set -gx PATH $HOME/perl5/bin $PATH
set -gx PATH /usr/bin/vendor_perl $PATH
set -gx PATH /usr/bin/core_perl $PATH