You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.3 KiB
Fish

alias l="ls -la"
alias ta="tmux attach -d"
alias e='emacsclient -a "" -t -nw'
alias emacs='emacs -q'
alias weather='curl http://wttr.in'
# Vim
if command --search nvim >/dev/null
alias vi=nvim
alias vim=nvim
set -x EDITOR nvim
else
alias vi=vim
set -x EDITOR vim
end
# Mac only
if command --search open >/dev/null
set -x BROWSER open
end
# IOCOM stuff
alias er='rm -rf logs; unzip -o'
if command --search p4 >/dev/null
set -x P4USER dswan
set -x P4PORT "humu.iocom.com:1666"
set -x P4CONFIG p4.cfg
7 years ago
set -x P4EDITOR nvim
set -x P4IGNORE .p4ignore
end
# PATH
set -x PATH $HOME/dotfiles/bin $PATH
7 years ago
# set -x PATH $HOME/.local/bin $PATH
7 years ago
set -x PATH $HOME/.npm-packages/bin $PATH
7 years ago
# set -x PATH /usr/local/opt/python/libexec/bin $PATH
7 years ago
set -x PATH $HOME/.cargo/bin $PATH
# Keychain
if status --is-interactive
# TODO Take this out when keychain fixes this bug
set -x GPG_AGENT_INFO "~/.gnupg/S.gpg-agent:"(pgrep gpg-agent)":1"
keychain --eval --inherit any --agents gpg,ssh --quiet id_rsa 2B3A6377 | source
end
# iTerm2
test -e {$HOME}/.iterm2_shell_integration.fish ; and source {$HOME}/.iterm2_shell_integration.fish
7 years ago
# Ledger
7 years ago
set -x LEDGER_FILE ~/Sync/Ledger/ledger.ledger
7 years ago
# Emacs term stuff
function fish_title
true
end
if test -n "$EMACS"
set -x TERM eterm-color
end