summaryrefslogtreecommitdiff
path: root/fish/config.fish
blob: acd164ac184b6b743750e1c2b95d0680ee8d34f0 (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
# perl
set -gx PERL_UNICODE AS
set -gx PERL_READLINE_NOWARN yes
set -gx GROKLOC_REPO $HOME/repos/grokloc-perl5
set -gx GROKLOC_LIB_INC $GROKLOC_REPO/lib
set -gx GROKLOC_SERVICE_INC $GROKLOC_REPO/service/app/lib
set -gx GROKLOC_INCS $GROKLOC_LIB_INC:$GROKLOC_SERVICE_INC
set -gx PERL5LIB $GROKLOC_INCS:$HOME/perl5/lib/perl5

# paths
set -gx BASEPATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
set -gx PATH $HOME/bin:$HOME/perl5/bin:$HOME/go/bin:$HOME/.cargo/bin:$BASEPATH

alias c clear
alias h history

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 emacsclient
    set -gx ALTERNATE_EDITOR emacs
    set -gx VISUAL emacsclient

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

    clear;
end