From ce0f43405110c6b29339cf84f3b0187e4abce4b6 Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Wed, 29 Nov 2017 20:50:29 -0800 Subject: [PATCH] added functions for YubiSwitch to toggle my key --- link/nix/zshrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/link/nix/zshrc b/link/nix/zshrc index 43e5c89..ddc01ed 100644 --- a/link/nix/zshrc +++ b/link/nix/zshrc @@ -85,6 +85,13 @@ alias sz='source ~/.zshrc' alias st='/Applications/SourceTree.app/Contents/MacOS/SourceTree &' alias ykey='pkill gpg-agent && source ~/.zshrc; ssh-add -L' +function otpon() { + osascript -e 'tell application "yubiswitch" to KeyOn' +} +function otpoff() { + osascript -e 'tell application "yubiswitch" to KeyOff' +} + export EDITOR='vim' export POWERLINE_CONFIG_COMMAND='/usr/local/bin/powerline-config'