Fix upgrade function, add yubikey notification for ssh.
This commit is contained in:
parent
9d5b86589d
commit
4f0f05c5d6
@ -23,6 +23,7 @@ source $ZDOTDIR/aliases.zsh
|
||||
source $ZDOTDIR/cleanhome.zsh
|
||||
source $ZDOTDIR/fzf.zsh
|
||||
source $ZDOTDIR/keys.zsh
|
||||
source $ZDOTDIR/ssh.zsh
|
||||
|
||||
# source modules
|
||||
source ~/.local/git/zsh_modules/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
|
||||
|
@ -48,3 +48,10 @@ function ud() {
|
||||
for i in ${LOCAL_GIT_DIR}/dotfiles ${LOCAL_GIT_DIR}/zsh_modules/*; do git -C ${i} pull; done
|
||||
nvim -c "lua require('lazy').sync({wait = true})"
|
||||
}
|
||||
|
||||
function upgrade() {
|
||||
case $(lsb_release -si) in
|
||||
Gentoo) eix-sync && eix-update && emerge -avuNDU @world ;;
|
||||
VoidLinux) xbps-install -Su && xbps-remove -RoO && xlocate -S ;;
|
||||
esac
|
||||
}
|
||||
|
6
config/zsh/ssh.zsh
Normal file
6
config/zsh/ssh.zsh
Normal file
@ -0,0 +1,6 @@
|
||||
if [[ ($uname -a) = "Darwin" ]]; then
|
||||
function ssh() {
|
||||
osascript -e 'display notification "Touch the YubiKey" with title "2fa required"'
|
||||
/opt/homebrew/bin/ssh $*
|
||||
}
|
||||
fi
|
Loading…
Reference in New Issue
Block a user