feat: basic tmux configuration

This commit is contained in:
ooks-io 2024-02-08 20:49:25 +13:00
parent 4e4f46a183
commit 4beae4c2e7
4 changed files with 63 additions and 27 deletions

View file

@ -7,7 +7,6 @@ let
hasNeovim = config.programs.neovim.enable;
hasBat = hasPackage "bat";
hasHelix = hasPackage "helix";
hasKitty = config.programs.kitty.enable;
in
{
config = {
@ -47,26 +46,6 @@ in
};
functions = {
fish_greeting = "";
zellij_session_select = ''
if not set -q ZELLIJ
set -l ZJ_SESSIONS (zellij list-sessions | awk '{print $1}')
set -l NO_SESSIONS (count $ZJ_SESSIONS)
if test $NO_SESSIONS -gt 0
set -l SELECTED_SESSION (printf "%s\n" $ZJ_SESSIONS | sk --ansi)
if test -n "$SELECTED_SESSION"
zellij attach -c $SELECTED_SESSION
else
zellij
end
else
zellij
end
end
'';
fish_flake_edit = ''
cd $FLAKE
hx $FLAKE
@ -81,10 +60,6 @@ in
'';
};
interactiveShellInit =
# zellij auto start script
''
zellij_session_select
'' +
''
set --global KITTY_INSTALLATION_DIR "${pkgs.kitty}/lib/kitty"
set --global KITTY_SHELL_INTEGRATION enabled