Commit Diff


commit - 12284587f985c31d6d1e790661002d08bf550f49
commit + a91721d810c9a9ef14e6f86951e5c83c7be78c0f
blob - 62a83e8007334f149f69084e8684163b2919ad04
blob + 1fd60e520bbedcf63dfe15f0062d690e00380276
--- .shrc
+++ .shrc
@@ -62,6 +62,16 @@ read_secret() {
     export "$1"
 }
 
+switch2yknano() {
+	ln -sf ~/.ssh/id_ed25519_sk_yknano.pub ~/.ssh/signing_key.pub
+	echo "Signing with YubiKey Nano"
+}
+
+switch2yknfc() {
+	ln -sf ~/.ssh/id_ed25519_sk_yknfc.pub ~/.ssh/signing_key.pub
+	echo "Signing with YubiKey NFC"
+}
+
 # type zh to search current session command history
 # from https://github.com/qbit/ohmyksh/blob/main/extensions/fzf.ksh
 # used to use ~fc -ln~ instead of ~cat ~/.ksh_histfile~ but this is better