summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-04-20 13:25:32 +0300
committerPaul Buetow <paul@buetow.org>2025-04-20 13:25:32 +0300
commit8a56bc891e54746d51f416178f8c9cb9f689dd21 (patch)
tree7c58c10993208fc1022fe4608b382443f60de4d9
parente22ed98726b96e16ef963faaa9d168a646ec135a (diff)
add tmux workaround
-rw-r--r--dotfiles/fish/conf.d/alternatives.fish36
-rw-r--r--dotfiles/fish/conf.d/tmux.fish11
-rw-r--r--dotfiles/fish/conf.d/zsh.fish2
3 files changed, 28 insertions, 21 deletions
diff --git a/dotfiles/fish/conf.d/alternatives.fish b/dotfiles/fish/conf.d/alternatives.fish
index ddf2cc8..a94783c 100644
--- a/dotfiles/fish/conf.d/alternatives.fish
+++ b/dotfiles/fish/conf.d/alternatives.fish
@@ -1,21 +1,17 @@
-function alternatives::init
- if type -q bat
- alias Cat=/usr/bin/cat
- alias cat=bat
- end
- if type -q see
- alias ca=see
- end
- if type -q bit
- alias Git=/usr/bin/git
- alias git=bit
- end
- if type -q procs
- alias p='procs'
- end
- if type -q zoxide
- zoxide init fish | source
- end
+if type -q bat
+ alias Cat=/usr/bin/cat
+ alias cat=bat
+end
+if type -q see
+ alias ca=see
+end
+if type -q bit
+ alias Git=/usr/bin/git
+ alias git=bit
+end
+if type -q procs
+ alias p='procs'
+end
+if type -q zoxide
+ zoxide init fish | source
end
-
-alternatives::init
diff --git a/dotfiles/fish/conf.d/tmux.fish b/dotfiles/fish/conf.d/tmux.fish
new file mode 100644
index 0000000..bd63730
--- /dev/null
+++ b/dotfiles/fish/conf.d/tmux.fish
@@ -0,0 +1,11 @@
+# TODO: Migrate away from ZSH (Ruby? Golang? Fish?)
+abbr -a tn 'Z tmux::new'
+abbr -a ta 'Z tmux::attach'
+abbr -a tx 'Z tmux::remote'
+abbr -a ts 'Z tmux::search'
+abbr -a tssh 'Z tmux::cluster_ssh'
+abbr -a tm 'Z tmux'
+abbr -a tl 'Z tmux list-sessions'
+abbr -a foo 'Z tmux::new foo'
+abbr -a bar 'Z tmux::new bar'
+abbr -a baz 'Z tmux::new baz'
diff --git a/dotfiles/fish/conf.d/zsh.fish b/dotfiles/fish/conf.d/zsh.fish
index a44a243..99b6d05 100644
--- a/dotfiles/fish/conf.d/zsh.fish
+++ b/dotfiles/fish/conf.d/zsh.fish
@@ -1,3 +1,3 @@
-function z
+function Z
zsh -i -c "$argv"
end