diff options
author | Minijackson <minijackson@riseup.net> | 2025-01-15 22:53:03 +0100 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2025-01-15 22:53:03 +0100 |
commit | a58ef3f816c19f212f24172ff2075be17bd7c29a (patch) | |
tree | c585e47b85e4984a957ddaf88ae0c6258794746a /common/commandline/fish.fish | |
parent | 07036438b2fe53b93374cb8ae0b39fdc2b2f6fdf (diff) | |
download | nixos-config-reborn-a58ef3f816c19f212f24172ff2075be17bd7c29a.tar.gz nixos-config-reborn-a58ef3f816c19f212f24172ff2075be17bd7c29a.zip |
common/fish: configure some abbrs, functions, keybinds
Diffstat (limited to 'common/commandline/fish.fish')
-rw-r--r-- | common/commandline/fish.fish | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/common/commandline/fish.fish b/common/commandline/fish.fish new file mode 100644 index 0000000..294849c --- /dev/null +++ b/common/commandline/fish.fish | |||
@@ -0,0 +1,16 @@ | |||
1 | # Disable greeting | ||
2 | set fish_greeting | ||
3 | set -g fish_key_bindings fish_vi_key_bindings | ||
4 | |||
5 | bind -M insert ctrl-Z 'fg ; commandline -f repaint' | ||
6 | |||
7 | function ssht | ||
8 | ssh -t "$argv" "tmux new-session -A -s 'ssh-$HOST'" | ||
9 | end | ||
10 | |||
11 | function cdt | ||
12 | builtin cd (mktemp -d) | ||
13 | builtin pwd | ||
14 | end | ||
15 | |||
16 | # TODO: sll | ||