From b28df6379a14c5bfb11c1ccee22e1e1996972475 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 5 Mar 2024 10:48:40 +0000 Subject: Adding some much missed fish aliai --- fish2024/functions/k5days.fish | 4 ++++ fish2024/functions/sync-tunnel.fish | 4 ++++ fish2024/functions/tcomptoday.fish | 4 ++++ fish2024/functions/ttags.fish | 4 ++++ 4 files changed, 16 insertions(+) create mode 100644 fish2024/functions/k5days.fish create mode 100644 fish2024/functions/sync-tunnel.fish create mode 100644 fish2024/functions/tcomptoday.fish create mode 100644 fish2024/functions/ttags.fish (limited to 'fish2024') diff --git a/fish2024/functions/k5days.fish b/fish2024/functions/k5days.fish new file mode 100644 index 0000000..9fc339b --- /dev/null +++ b/fish2024/functions/k5days.fish @@ -0,0 +1,4 @@ +function k5days --wraps='khal list today 5 days' --description 'alias k5days=khal list today 5 days' + khal list today 5 days $argv + +end diff --git a/fish2024/functions/sync-tunnel.fish b/fish2024/functions/sync-tunnel.fish new file mode 100644 index 0000000..ff17ee5 --- /dev/null +++ b/fish2024/functions/sync-tunnel.fish @@ -0,0 +1,4 @@ +function sync-tunnel --wraps='ssh -N -L 9090:127.0.0.1:8384 syncthing@syncthing-ct.banded-neon.ts.net' --description 'alias sync-tunnel=ssh -N -L 9090:127.0.0.1:8384 syncthing@syncthing-ct.banded-neon.ts.net' + ssh -N -L 9090:127.0.0.1:8384 syncthing@syncthing-ct.banded-neon.ts.net $argv + +end diff --git a/fish2024/functions/tcomptoday.fish b/fish2024/functions/tcomptoday.fish new file mode 100644 index 0000000..674c23b --- /dev/null +++ b/fish2024/functions/tcomptoday.fish @@ -0,0 +1,4 @@ +function tcomptoday --wraps='task end.after:today-1d completed' --description 'alias tcomptoday=task end.after:today-1d completed' + task end.after:today-1d completed $argv + +end diff --git a/fish2024/functions/ttags.fish b/fish2024/functions/ttags.fish new file mode 100644 index 0000000..09667f1 --- /dev/null +++ b/fish2024/functions/ttags.fish @@ -0,0 +1,4 @@ +function ttags --wraps='task rc.list.all.tags=1 tags' --description 'alias ttags=task rc.list.all.tags=1 tags' + task rc.list.all.tags=1 tags $argv + +end -- cgit v1.2.3 From 09981e893ae568c8ab72c9963b5b40a299330554 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 8 Mar 2024 08:43:12 +0000 Subject: Adds Perlbrew --- fish2024/config.fish | 1 + 1 file changed, 1 insertion(+) (limited to 'fish2024') diff --git a/fish2024/config.fish b/fish2024/config.fish index a391024..7f3785f 100644 --- a/fish2024/config.fish +++ b/fish2024/config.fish @@ -4,3 +4,4 @@ if status is-interactive set -gx GPG_TTY (tty) set -gx LEDGER_FILE $HOME/Budget/hledger/budget.ledger end +. ~/perl5/perlbrew/etc/perlbrew.fish -- cgit v1.2.3 From 655685127cb286eb83b02e93d1f0592ea22a5e37 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 13 Mar 2024 10:48:01 +0000 Subject: Adds ssh-agent config --- fish2024/config.fish | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'fish2024') diff --git a/fish2024/config.fish b/fish2024/config.fish index 7f3785f..a3a8260 100644 --- a/fish2024/config.fish +++ b/fish2024/config.fish @@ -4,4 +4,12 @@ if status is-interactive set -gx GPG_TTY (tty) set -gx LEDGER_FILE $HOME/Budget/hledger/budget.ledger end + +# https://gist.github.com/josh-padnick/c90183be3d0e1feb89afd7573505cab3 +if test -z (pgrep ssh-agent) + eval (ssh-agent -c) > /dev/null + set -Ux SSH_AUTH_SOCK $SSH_AUTH_SOCK + set -Ux SSH_AGENT_PID $SSH_AGENT_PID +end + . ~/perl5/perlbrew/etc/perlbrew.fish -- cgit v1.2.3 From e8766d0220438b816a56bb6ad3edc34cb72a71d9 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 31 Mar 2024 17:14:53 +0100 Subject: Comments out ssh-agent start-up --- fish2024/config.fish | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'fish2024') diff --git a/fish2024/config.fish b/fish2024/config.fish index a3a8260..c42bdf9 100644 --- a/fish2024/config.fish +++ b/fish2024/config.fish @@ -6,10 +6,10 @@ if status is-interactive end # https://gist.github.com/josh-padnick/c90183be3d0e1feb89afd7573505cab3 -if test -z (pgrep ssh-agent) - eval (ssh-agent -c) > /dev/null - set -Ux SSH_AUTH_SOCK $SSH_AUTH_SOCK - set -Ux SSH_AGENT_PID $SSH_AGENT_PID -end +# if test -z (pgrep ssh-agent) +# eval (ssh-agent -c) > /dev/null +# set -Ux SSH_AUTH_SOCK $SSH_AUTH_SOCK +# set -Ux SSH_AGENT_PID $SSH_AGENT_PID +# end . ~/perl5/perlbrew/etc/perlbrew.fish -- cgit v1.2.3