script + variable d'environment pour une session byobu d'adminsys

pull/7/head
Yves Dubromelle 8 years ago
parent 9d0c04810c
commit 5be0164cb9

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

Loading…
Cancel
Save