dotfiles/fish/.config/fish/config.fish

51 lines
1.1 KiB
Fish
Raw Normal View History

2020-10-07 23:29:49 +00:00
set -xg EDITOR vim
2018-11-28 16:08:06 +00:00
set -xg TZ 'America/Detroit'
2018-07-22 19:39:58 +00:00
2018-08-08 18:55:26 +00:00
if test -d ~/Maildir
set -x MAIL ~/Maildir
end
2022-08-10 19:05:22 +00:00
for i in ~/bin ~/.local/bin ~/.rbenv/bin ~/.rbenv/shims ~/.cargo/bin ~/.yarn/bin
if test -d $i
fish_add_path --path $i
2018-08-08 18:55:26 +00:00
end
end
2018-07-22 19:39:58 +00:00
2021-08-29 19:37:04 +00:00
# add rbenv paths
2022-08-10 19:05:22 +00:00
if status --is-interactive && type -q rbenv
set -gx RBENV_SHELL fish
source '/usr/lib/rbenv/completions/rbenv.fish'
command rbenv rehash 2>/dev/null
function rbenv
set command $argv[1]
set -e argv[1]
switch "$command"
case rehash shell
source (rbenv "sh-$command" $argv|psub)
case '*'
command rbenv "$command" $argv
end
end
end
2021-08-29 19:37:04 +00:00
2018-11-28 16:08:06 +00:00
#set -x SSH_AGENT_PID ""
2018-08-20 23:10:29 +00:00
if test -S $HOME/.gnupg/S.gpg-agent
set -x SSH_AUTH_SOCK $HOME/.gnupg/S.gpg-agent
set -x GPG_SOCK $HOME/.gnupg/S.gpg-agent
else
2022-08-10 19:05:22 +00:00
type -q gpgconf && set -x SSH_AUTH_SOCK (gpgconf --list-dirs agent-ssh-socket)
2018-08-20 23:10:29 +00:00
end
2018-07-30 23:56:18 +00:00
2018-08-05 14:07:29 +00:00
set -x BBJ_USER $USER
2022-01-14 21:18:27 +00:00
# add dotnet completions if needed
if status --is-interactive && type -q dotnet
complete -f -c dotnet -a "(dotnet complete)"
end
status --is-login && status --is-interactive && exec byobu-launcher