aboutsummaryrefslogtreecommitdiffstats
path: root/fish2025
diff options
context:
space:
mode:
Diffstat (limited to 'fish2025')
-rw-r--r--fish2025/conf.d/uv.env.fish2
-rw-r--r--fish2025/config.fish21
-rw-r--r--fish2025/functions/bglist.fish4
-rw-r--r--fish2025/functions/gloga.fish4
-rw-r--r--fish2025/functions/jrnl.fish4
-rw-r--r--fish2025/functions/notes.fish4
-rw-r--r--fish2025/functions/xclip.fish4
-rw-r--r--fish2025/functions/xterm-cascadia-gainsboro.fish4
-rw-r--r--fish2025/functions/xterm-cascadia-goldenrod.fish4
9 files changed, 51 insertions, 0 deletions
diff --git a/fish2025/conf.d/uv.env.fish b/fish2025/conf.d/uv.env.fish
new file mode 100644
index 0000000..c5be13c
--- /dev/null
+++ b/fish2025/conf.d/uv.env.fish
@@ -0,0 +1,2 @@
+
+source "$HOME/.local/bin/env.fish"
diff --git a/fish2025/config.fish b/fish2025/config.fish
new file mode 100644
index 0000000..b54f3bf
--- /dev/null
+++ b/fish2025/config.fish
@@ -0,0 +1,21 @@
+if status is-interactive
+ # go for a bar cursor in xterm - if you do this when doing non-interactive stuff, it will break
+ # the output of the command and you cannot use the pachelbel jump server.
+ echo -e -n "\x1b[\x36 q"
+ # Commands to run in interactive sessions can go here
+end
+
+set fish_greeting ""
+
+if not contains "$HOME/.local/bin" $PATH
+ # Prepending path in case a system-installed binary needs to be overridden
+ set -x PATH "$HOME/.local/bin" $PATH
+end
+
+set -gx GPG_TTY (tty)
+set -gx SSH_AUTH_SOCK (gpgconf --list-dirs agent-ssh-socket)
+gpgconf --launch gpg-agent
+
+# make sure direnv is loaded
+direnv hook fish | source
+
diff --git a/fish2025/functions/bglist.fish b/fish2025/functions/bglist.fish
new file mode 100644
index 0000000..fb03218
--- /dev/null
+++ b/fish2025/functions/bglist.fish
@@ -0,0 +1,4 @@
+function bglist --wraps='borg list ssh://u423613@u423613.your-storagebox.de:23/./backups/matt_desktop' --description 'alias bglist=borg list ssh://u423613@u423613.your-storagebox.de:23/./backups/matt_desktop'
+ borg list ssh://u423613@u423613.your-storagebox.de:23/./backups/matt_desktop $argv
+
+end
diff --git a/fish2025/functions/gloga.fish b/fish2025/functions/gloga.fish
new file mode 100644
index 0000000..98da2aa
--- /dev/null
+++ b/fish2025/functions/gloga.fish
@@ -0,0 +1,4 @@
+function gloga --wraps='git log --oneline --decorate --graph --all' --description 'alias gloga=git log --oneline --decorate --graph --all'
+ git log --oneline --decorate --graph --all $argv
+
+end
diff --git a/fish2025/functions/jrnl.fish b/fish2025/functions/jrnl.fish
new file mode 100644
index 0000000..aa21768
--- /dev/null
+++ b/fish2025/functions/jrnl.fish
@@ -0,0 +1,4 @@
+function jrnl --wraps='uv run ~/code/python/journal-tools/update_journal.py' --description 'alias jrnl=uv run ~/code/python/journal-tools/update_journal.py'
+ uv run ~/code/python/journal-tools/update_journal.py $argv
+
+end
diff --git a/fish2025/functions/notes.fish b/fish2025/functions/notes.fish
new file mode 100644
index 0000000..d6d7ec7
--- /dev/null
+++ b/fish2025/functions/notes.fish
@@ -0,0 +1,4 @@
+function notes --wraps='cd ~/Documents/Notes' --description 'alias notes=cd ~/Documents/Notes'
+ cd ~/Documents/Notes $argv
+
+end
diff --git a/fish2025/functions/xclip.fish b/fish2025/functions/xclip.fish
new file mode 100644
index 0000000..b552ec6
--- /dev/null
+++ b/fish2025/functions/xclip.fish
@@ -0,0 +1,4 @@
+function xclip --description 'alias xclip=xclip -selection c'
+ command xclip -selection c $argv
+
+end
diff --git a/fish2025/functions/xterm-cascadia-gainsboro.fish b/fish2025/functions/xterm-cascadia-gainsboro.fish
new file mode 100644
index 0000000..213f2de
--- /dev/null
+++ b/fish2025/functions/xterm-cascadia-gainsboro.fish
@@ -0,0 +1,4 @@
+function xterm-cascadia-gainsboro --wraps=xterm\ -fg\ black\ -bg\ Gainsboro\ -fa\ Cascadia\\\ Mono\ -fs\ 10 --description alias\ xterm-cascadia-gainsboro=xterm\ -fg\ black\ -bg\ Gainsboro\ -fa\ Cascadia\\\ Mono\ -fs\ 10
+ xterm -fg black -bg Gainsboro -fa Cascadia\ Mono -fs 10 $argv
+
+end
diff --git a/fish2025/functions/xterm-cascadia-goldenrod.fish b/fish2025/functions/xterm-cascadia-goldenrod.fish
new file mode 100644
index 0000000..1ea0728
--- /dev/null
+++ b/fish2025/functions/xterm-cascadia-goldenrod.fish
@@ -0,0 +1,4 @@
+function xterm-cascadia-goldenrod --wraps=xterm\ -fg\ black\ -bg\ Goldenrod\ -fa\ Cascadia\\\ Mono\ -fs\ 10 --description alias\ xterm-cascadia-goldenrod=xterm\ -fg\ black\ -bg\ Goldenrod\ -fa\ Cascadia\\\ Mono\ -fs\ 10
+ xterm -fg black -bg Goldenrod -fa Cascadia\ Mono -fs 10 $argv
+
+end