From dec607c6e75f1b7f91e80e82eaa6361e65587469 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 19 Jan 2025 10:57:45 +0100 Subject: [PATCH] add more fish functions --- dot_config/fish/private_functions/sdev.fish | 3 +++ dot_config/fish/private_functions/stash.fish | 5 +++++ dot_config/fish/private_functions/static-server.fish | 3 +++ 3 files changed, 11 insertions(+) create mode 100644 dot_config/fish/private_functions/sdev.fish create mode 100644 dot_config/fish/private_functions/stash.fish create mode 100644 dot_config/fish/private_functions/static-server.fish diff --git a/dot_config/fish/private_functions/sdev.fish b/dot_config/fish/private_functions/sdev.fish new file mode 100644 index 0000000..e4c7df2 --- /dev/null +++ b/dot_config/fish/private_functions/sdev.fish @@ -0,0 +1,3 @@ +function sdev + ssh sdev -t 'tmux -CC new -A -s tmssh' +end diff --git a/dot_config/fish/private_functions/stash.fish b/dot_config/fish/private_functions/stash.fish new file mode 100644 index 0000000..c70a384 --- /dev/null +++ b/dot_config/fish/private_functions/stash.fish @@ -0,0 +1,5 @@ +function stash +set creds (keepassxc-cli show -a username -a password ~/Nextcloud/OVH/keepass.kdbx "Stash token") +set -U STASH_USER $creds[1] +set -U STASH_PWD $creds[2] +end diff --git a/dot_config/fish/private_functions/static-server.fish b/dot_config/fish/private_functions/static-server.fish new file mode 100644 index 0000000..27992f5 --- /dev/null +++ b/dot_config/fish/private_functions/static-server.fish @@ -0,0 +1,3 @@ +function static-server --wraps='go run github.com/eliben/static-server@latest' --description 'alias static-server go run github.com/eliben/static-server@latest' + go run github.com/eliben/static-server@latest $argv +end