Fix upgrade function, add yubikey notification for ssh.
This commit is contained in:
parent
9d5b86589d
commit
4f0f05c5d6
3 changed files with 14 additions and 0 deletions
|
@ -23,6 +23,7 @@ source $ZDOTDIR/aliases.zsh
|
||||||
source $ZDOTDIR/cleanhome.zsh
|
source $ZDOTDIR/cleanhome.zsh
|
||||||
source $ZDOTDIR/fzf.zsh
|
source $ZDOTDIR/fzf.zsh
|
||||||
source $ZDOTDIR/keys.zsh
|
source $ZDOTDIR/keys.zsh
|
||||||
|
source $ZDOTDIR/ssh.zsh
|
||||||
|
|
||||||
# source modules
|
# source modules
|
||||||
source ~/.local/git/zsh_modules/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
|
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
|
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})"
|
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…
Add table
Add a link
Reference in a new issue