From 5fe35808d2bbe0d3334a4f6a058a1e5389cd8d8c Mon Sep 17 00:00:00 2001 From: Oliver Davies <oliver@oliverdavies.dev> Date: Sat, 24 Aug 2024 23:36:39 +0100 Subject: [PATCH] Trying out zellij --- lib/shared/home-manager.nix | 1 + lib/shared/modules/zellij.nix | 10 ++++++++++ lib/shared/modules/zsh/abbreviations.zsh | 10 ++++++---- 3 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 lib/shared/modules/zellij.nix diff --git a/lib/shared/home-manager.nix b/lib/shared/home-manager.nix index caaa68ce..4b1195aa 100644 --- a/lib/shared/home-manager.nix +++ b/lib/shared/home-manager.nix @@ -28,6 +28,7 @@ in ./modules/ripgrep.nix ./modules/syncthing.nix ./modules/tmux.nix + ./modules/zellij.nix ./modules/zsh.nix ]; } diff --git a/lib/shared/modules/zellij.nix b/lib/shared/modules/zellij.nix new file mode 100644 index 00000000..640d8ca1 --- /dev/null +++ b/lib/shared/modules/zellij.nix @@ -0,0 +1,10 @@ +{ + programs.zellij = { + enable = true; + }; + + xdg.configFile."zellij/config.kdl".text = '' + simplified_ui true + pane_frames false + ''; +} diff --git a/lib/shared/modules/zsh/abbreviations.zsh b/lib/shared/modules/zsh/abbreviations.zsh index f965d86b..b1cc25c3 100644 --- a/lib/shared/modules/zsh/abbreviations.zsh +++ b/lib/shared/modules/zsh/abbreviations.zsh @@ -35,6 +35,12 @@ abbr ta="tmux attach" abbr tl="tmux list-sessions" abbr tk="tmux kill-session" +# zellij +abbr zj="zellij" +abbr znt="zellij action new-tab" +abbr zr="zellij run --" +abbr zrf="zellij run --floating --" + # Docker and Docker Compose. abbr dk="docker" abbr dkp="docker ps" @@ -84,10 +90,6 @@ abbr rdup="run drush updatedb -y" abbr rpub="run publish" abbr rt="run test" -abbr clh="curl localhost:%" -abbr clh3="curl localhost:3000%" -abbr clh8="curl localhost:8000%" - abbr -g A1="| awk '{print $1}'" abbr -g C="| xclip -sel clip" abbr -g Fj="| jq ."