Tmuxinator configured with special alises

This commit is contained in:
Jack Mechem 2026-05-23 18:13:16 -07:00
parent 0c40918c45
commit f0d7f531e9
Signed by: jackmechem
SSH key fingerprint: SHA256:GjIjMAC33pzYOe+hWcX5uvgnPrVFAXSrquvt84AOJbU
4 changed files with 34 additions and 40 deletions

View file

@ -1,17 +1,16 @@
--- ---
name: testtest name: jack-mechem_nixos-config
project_root: "/home/jack/nixos" project_root: "/home/jack/nixos"
windows: windows:
- vim: - vim:
layout: 9980,113x53,0,0[113x33,0,0,0,113x19,0,34,4] layout: 5ce1,230x53,0,0,12
panes: panes:
- cd /home/jack/nixos - cd /home/jack/nixos
- cd /home/jack/nixos
- term: - term:
layout: b95e,230x53,0,0,1 layout: 5ce2,230x53,0,0,13
panes: panes:
- cd /home/jack/nixos - cd /home/jack/nixos
- nixos-rebuild: - nixos-rebuild:
layout: b95f,230x53,0,0,2 layout: 5ce3,230x53,0,0,14
panes: panes:
- cd /home/jack/nixos - cd /home/jack/nixos

View file

@ -53,9 +53,14 @@ let
desc = "Sign provided file with SSH-ED25519-SK key. Takes in one argument: sign-file document.pdf)"; desc = "Sign provided file with SSH-ED25519-SK key. Takes in one argument: sign-file document.pdf)";
} }
{ {
name = "tm-save"; name = "tm";
cmd = "TMUXINATOR_CONFIG=. tmuxinator new"; cmd = ''tmuxinator'';
desc = "Usage: tm-save <save-name> <session-name-to-copy>"; desc = "Short for tmuxinator. tm-save saves locally with provided session Other Usage: tm-save <session-name-to-copy>; 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 // { home.shellAliases = aliasAttrs // {
a = ''echo -e "${helpText}\n a -> List aliases"''; 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
}
'';
} }

View file

@ -10,20 +10,6 @@
# inherit shellAliases; # inherit shellAliases;
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
autosuggestion.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 = { oh-my-zsh = {
enable = true; enable = true;
theme = "gentoo"; theme = "gentoo";

View file

@ -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