summaryrefslogtreecommitdiffstats
path: root/fish/config.fish
blob: 653ed5fb1c8c6066c88a10059b07eee3008a160d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# environment {{{
function export
    set parts (string split -m1 = $argv[1])
    set -x $parts[1] $parts[2]
end
source (cat ~/.env | sed 's/\$(/(/g' | psub)
# }}}
# language environments {{{
test -f $HOME/perl5/perlbrew/etc/bashrc; and source $HOME/perl5/perlbrew/etc/perlbrew.fish
type rbenv > /dev/null 2>&1; and source (rbenv init - | psub)
# }}}
# Change the window title of X terminals {{{
function fish_title
    echo "$USER@"(hostname)":"(echo $PWD | sed "s,^$HOME,~,")
end
# }}}
# aliases {{{
source $HOME/.aliases
# }}}
# fortune {{{
if status --is-interactive
    fortune -n600 -s ~/.fortune | grep -v -E '^$'
end
# }}}