fix: kill mpc-current when mpc unavailable

This commit is contained in:
Tobias Reisinger 2020-01-15 08:38:35 +01:00
parent 6215d6772d
commit 9b8c331a6a
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,7 @@
#!/bin/sh
[ ! -x "$(command -v mpc)" ] && exit
alias mpc-current='mpc -f "%title% - %album% - %artist%" current'
mpc-current

View file

@ -1,7 +1,8 @@
export VIMINIT='source ~/.config/vim/vimrc'
export PASSWORD_STORE_GENERATED_LENGTH='64'
if [ -x "$(command -v gpgconf)" ]; then
if [ -x "$(command -v gpgconf)" ]
then
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
fi