diff options
Diffstat (limited to 'fish2024')
-rw-r--r-- | fish2024/config.fish | 3 | ||||
-rw-r--r-- | fish2024/functions/_extract_description_from_task.fish | 5 | ||||
-rw-r--r-- | fish2024/functions/gitrepos.fish | 5 |
3 files changed, 10 insertions, 3 deletions
diff --git a/fish2024/config.fish b/fish2024/config.fish index d9d67d3..abe69b1 100644 --- a/fish2024/config.fish +++ b/fish2024/config.fish @@ -1,4 +1,5 @@ if status is-interactive - set -gx EDITOR nvim # Commands to run in interactive sessions can go here + set -gx EDITOR nvim + set -gx LEDGER_FILE $HOME/Budget/hledger/budget.ledger end diff --git a/fish2024/functions/_extract_description_from_task.fish b/fish2024/functions/_extract_description_from_task.fish new file mode 100644 index 0000000..0b82d9d --- /dev/null +++ b/fish2024/functions/_extract_description_from_task.fish @@ -0,0 +1,5 @@ +function _extract_description_from_task --description 'Given a taskwarrior task ID, it returns the description of the task and adds it to clipboard' + set desc (task $argv[1] |grep Description |cut -d' ' -f4-) + echo $desc |xclip + echo $desc +end diff --git a/fish2024/functions/gitrepos.fish b/fish2024/functions/gitrepos.fish index ef940cd..bf009a4 100644 --- a/fish2024/functions/gitrepos.fish +++ b/fish2024/functions/gitrepos.fish @@ -1,4 +1,5 @@ -function gitrepos --wraps='ssh git@joannalemon.com "tree -L 2 repositories"' --description 'alias gitrepos=ssh git@joannalemon.com "tree -L 2 repositories"' - ssh git@joannalemon.com "tree -L 2 repositories" $argv +function gitrepos --wraps='ssh git@joannalemon.com "tree -L 2 repositories"' --wraps='ssh git@joannalemon.com "find repositories/ -maxdepth 2 -type d|cut -d/ -f2-"' --description 'alias gitrepos=ssh git@joannalemon.com "find repositories/ -maxdepth 2 -type d|cut -d/ -f2-"' + # ssh git@joannalemon.com "tree -L 2 repositories" $argv + ssh git@joannalemon.com "find repositories/ -maxdepth 2 -type d|cut -d/ -f2-" end |