script + variable d'environment pour une session byobu d'adminsys
This commit is contained in:
15
byobu-adminsys
Executable file
15
byobu-adminsys
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
SESSION_NAME="Adminsys"
|
||||
PROJECT_DIR="/etc/nixos"
|
||||
PROJECT_MODULES="base private server"
|
||||
|
||||
byobu new-session -d -s ${SESSION_NAME} -n 'run' -c ${PROJECT_DIR};
|
||||
byobu new-window -n 'git' -c ${PROJECT_DIR};
|
||||
byobu new-window -n 'config' -c ${PROJECT_DIR};
|
||||
for i in ${PROJECT_MODULES}
|
||||
do
|
||||
byobu new-window -n ${i} -c ${PROJECT_DIR}/${i};
|
||||
done
|
||||
byobu -2 attach-session -t ${SESSION_NAME};
|
||||
|
||||
@@ -69,6 +69,7 @@ in
|
||||
#git-loc = "git ls-files | while read f; do git blame --line-porcelain "${f}" | grep '^author '; done | sort -f | uniq -ic | sort -n";
|
||||
grep = "grep --color=auto";
|
||||
vi = "vim";
|
||||
byobu-adminsys = "/etc/nixos/base/byobu-adminsys";
|
||||
};
|
||||
etc.gitconfig.text = builtins.readFile ./gitconfig;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user