forked from kunsi/dotfiles
77 lines
2.6 KiB
Fish
77 lines
2.6 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)
|
|
|
|
alias bwr='cd ~/git/bundlewrap/'
|
|
alias cm='cd ~/git/cm/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/ && voctogui/voctogui.py'
|
|
alias weechat='mosh carlene.kunbox.net -- tmux attach-session -d -t weechat-tmux'
|
|
alias wipa="watch -cn0.3 'ip --color=always -brief addr show; echo; ip --color=always route show; ip -6 --color=always route show; echo; echo; cat /etc/resolv.conf'"
|
|
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 wg_up='sudo networkctl up wg_htz-cloud_wi'
|
|
alias wg_down='sudo networkctl down wg_htz-cloud_wi'
|
|
alias voc_up='sudo systemctl start openvpn-client@c3voc'
|
|
alias voc_down='sudo systemctl stop openvpn-client@c3voc'
|
|
|
|
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'
|
|
|
|
alias libreoffice_present='libreoffice --impress --invisible --show'
|
|
|
|
set -x BW_ITEM_WORKERS 16
|
|
set -x BW_NODE_WORKERS 16
|
|
set -x BW_KEEPASS_FILE /home/kunsi/git/passwords/voc.kdbx
|
|
|
|
set -x LESS "-iRS -# 2"
|
|
|
|
# mollys mpd, see /etc/hosts
|
|
set -x MPD_HOST mpd.local
|
|
|
|
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
|
|
|
|
function cert
|
|
echo "" | openssl s_client -connect {$argv[1]}:443
|
|
end
|
|
|
|
function tomp3
|
|
ffmpeg -i "$argv[1]" -vn -f mp3 -q:a 0 "$(basename "$argv[1]").mp3"
|
|
end
|