dotfiles/.config/fish/config.fish
2023-01-22 15:58:23 +01:00

56 lines
1.9 KiB
Fish

set -U -x EDITOR vim
set -U -x MPD_HOST 172.19.138.20
set -U fish_features stderr-nocaret qmark-noglob
set PATH $PATH /home/kunsi/.local/bin /home/kunsi/.gem/ruby/2.6.0/bin/ /home/kunsi/.bin
set -U -x SSH_AUTH_SOCK $(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
alias bwr='cd ~/git/bundlewrap/'
alias cal='cal -v -m -3'
alias ipa='ip -brief --color=always addr show; echo; ip --color=always route show; ip -6 --color=always route show'
alias l='ls -lAh'
alias p='python'
alias rm='rm --one-file-system'
alias share-via-ssh='/home/kunsi/git/share-via-ssh/share-via-ssh'
alias tmp='cd (mktemp -d -p /home/kunsi --suffix=.(date +%F))'
alias v='vim -p'
alias voc-ansible='/home/kunsi/.bin/voc-ansible'
alias voc2gui='cd /home/kunsi/git/voctomix/ && .venv/bin/python voctogui/voctogui.py'
alias weechat='mosh rx300 -- tmux attach-session -d -t weechat-tmux'
alias youtube-dl='yt-dlp --compat-options youtube-dl'
alias lumos='mosquitto_pub -h 172.19.138.20 -t /switch/wohnzimmer/stehlampe/cmnd/POWER -m "ON"'
alias nox='mosquitto_pub -h 172.19.138.20 -t /switch/wohnzimmer/stehlampe/cmnd/POWER -m "OFF"'
alias coffee='mosquitto_pub -h 172.19.138.20 -t /switch/kueche/kaffeemaschine/cmnd/POWER -m "ON"'
alias nocoffee='mosquitto_pub -h 172.19.138.20 -t /switch/kueche/kaffeemaschine/cmnd/POWER -m "OFF"'
alias ga.='git add .'
alias ga='git add'
alias gc='git commit'
alias gd='git diff'
alias gdc='git diff --cached'
alias gm='git checkout main && git pull --all'
alias gp='git push'
alias gpu='git push -u origin HEAD'
alias gs='git status --short'
set -x BW_ITEM_WORKERS 16
set -x BW_NODE_WORKERS 16
set -x BW_KEEPASS_FILE /home/kunsi/git/passwords/voc.kdbx
function fish_greeting
echo -n ""
end
function fish_command_not_found
__fish_default_command_not_found_handler $argv[1]
end
function fish_title
echo (status current-command)
end
function config --wraps=/usr/bin/git
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $argv;
end