From f0d7f531e99b0795074bd35559149b7f6338f953 Mon Sep 17 00:00:00 2001 From: Jack Mechem Date: Sat, 23 May 2026 18:13:16 -0700 Subject: [PATCH] Tmuxinator configured with special alises --- testtest.yml => .tmuxinator.yml | 9 ++++--- modules/home-manager/shell-aliases.nix | 33 +++++++++++++++++++++++--- modules/home-manager/zsh.nix | 14 ----------- nixosTwo.yml | 18 -------------- 4 files changed, 34 insertions(+), 40 deletions(-) rename testtest.yml => .tmuxinator.yml (54%) delete mode 100644 nixosTwo.yml diff --git a/testtest.yml b/.tmuxinator.yml similarity index 54% rename from testtest.yml rename to .tmuxinator.yml index b0c026e..954c1e6 100644 --- a/testtest.yml +++ b/.tmuxinator.yml @@ -1,17 +1,16 @@ --- -name: testtest +name: jack-mechem_nixos-config project_root: "/home/jack/nixos" windows: - vim: - layout: 9980,113x53,0,0[113x33,0,0,0,113x19,0,34,4] + layout: 5ce1,230x53,0,0,12 panes: - cd /home/jack/nixos - - cd /home/jack/nixos - term: - layout: b95e,230x53,0,0,1 + layout: 5ce2,230x53,0,0,13 panes: - cd /home/jack/nixos - nixos-rebuild: - layout: b95f,230x53,0,0,2 + layout: 5ce3,230x53,0,0,14 panes: - cd /home/jack/nixos diff --git a/modules/home-manager/shell-aliases.nix b/modules/home-manager/shell-aliases.nix index f34ba2e..59acf8a 100644 --- a/modules/home-manager/shell-aliases.nix +++ b/modules/home-manager/shell-aliases.nix @@ -53,9 +53,14 @@ let desc = "Sign provided file with SSH-ED25519-SK key. Takes in one argument: sign-file document.pdf)"; } { - name = "tm-save"; - cmd = "TMUXINATOR_CONFIG=. tmuxinator new"; - desc = "Usage: tm-save "; + name = "tm"; + cmd = ''tmuxinator''; + desc = "Short for tmuxinator. tm-save saves locally with provided session Other Usage: tm-save ; smae for tm-dup"; + } + { + name = "tm-load"; + cmd = "tmuxinator local"; + desc = "Created and opens tmux session from yml file in the current directory. Usage: tm-load"; } ]; @@ -72,4 +77,26 @@ in home.shellAliases = aliasAttrs // { a = ''echo -e "${helpText}\n a -> List aliases"''; }; + + programs.zsh.initContent = '' + ZSH_AUTOSUGGEST_USE_ASYNC=false + fastfetch -c examples/11 + if [[ -n "$IN_NIX_SHELL" ]]; then + PROMPT="%F{blue}[nix-shell]%f $PROMPT" + fi + nix() { + if [[ "$1" == "develop" ]]; then + command nix develop -c zsh "''${@:2}" + else + command nix "$@" + fi + } + tm-save() { + tmuxinator new "$1" "$2" --local + } + tm-dup() { + tmuxinator new "$1" "$1" --local + } + ''; + } diff --git a/modules/home-manager/zsh.nix b/modules/home-manager/zsh.nix index 96e82bb..107281a 100644 --- a/modules/home-manager/zsh.nix +++ b/modules/home-manager/zsh.nix @@ -10,20 +10,6 @@ # inherit shellAliases; syntaxHighlighting.enable = true; autosuggestion.enable = true; - initContent = '' - ZSH_AUTOSUGGEST_USE_ASYNC=false - fastfetch -c examples/11 - if [[ -n "$IN_NIX_SHELL" ]]; then - PROMPT="%F{blue}[nix-shell]%f $PROMPT" - fi - nix() { - if [[ "$1" == "develop" ]]; then - command nix develop -c zsh "''${@:2}" - else - command nix "$@" - fi - } - ''; oh-my-zsh = { enable = true; theme = "gentoo"; diff --git a/nixosTwo.yml b/nixosTwo.yml deleted file mode 100644 index ca44a76..0000000 --- a/nixosTwo.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -name: nixosTwo -project_root: "/home/jack/nixos" -windows: -- vim: - layout: b6d7,230x53,0,0[230x40,0,0,0,230x12,0,41{115x12,0,41,4,114x12,116,41,5}] - panes: - - cd /home/jack/nixos - - cd /home/jack/nixos - - cd /home/jack/.config/tmuxinator -- term: - layout: b95e,230x53,0,0,1 - panes: - - cd /home/jack/nixos -- nixos-rebuild: - layout: b95f,230x53,0,0,2 - panes: - - cd /home/jack/nixos