fix: kill mpc-current when mpc unavailable
This commit is contained in:
parent
6215d6772d
commit
9b8c331a6a
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
[ ! -x "$(command -v mpc)" ] && exit
|
||||||
|
|
||||||
alias mpc-current='mpc -f "%title% - %album% - %artist%" current'
|
alias mpc-current='mpc -f "%title% - %album% - %artist%" current'
|
||||||
|
|
||||||
mpc-current
|
mpc-current
|
||||||
|
|
3
.profile
3
.profile
|
@ -1,7 +1,8 @@
|
||||||
export VIMINIT='source ~/.config/vim/vimrc'
|
export VIMINIT='source ~/.config/vim/vimrc'
|
||||||
export PASSWORD_STORE_GENERATED_LENGTH='64'
|
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)
|
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||||
gpgconf --launch gpg-agent
|
gpgconf --launch gpg-agent
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue