From ab253ff38888a9caa4f72d729f53f54e455b8396 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Wed, 1 Apr 2015 10:34:34 +0200 Subject: [anevia] moved host lab1.anevia.com to anevia.com, +added symlink --- net:anevia.com/user:hhiegel/Colors.zsh | 12 ++++++++++++ net:anevia.com/user:hhiegel/Environment.zsh | 5 +++++ net:anevia.com/user:hhiegel/Functions.zsh | 17 +++++++++++++++++ net:anevia.com/user:hhiegel/Prompts.zsh | 3 +++ 4 files changed, 37 insertions(+) create mode 100644 net:anevia.com/user:hhiegel/Colors.zsh create mode 100644 net:anevia.com/user:hhiegel/Environment.zsh create mode 100644 net:anevia.com/user:hhiegel/Functions.zsh create mode 100644 net:anevia.com/user:hhiegel/Prompts.zsh (limited to 'net:anevia.com') diff --git a/net:anevia.com/user:hhiegel/Colors.zsh b/net:anevia.com/user:hhiegel/Colors.zsh new file mode 100644 index 0000000..8b0c37a --- /dev/null +++ b/net:anevia.com/user:hhiegel/Colors.zsh @@ -0,0 +1,12 @@ + +typeset -A _env_colors + +_env_colors[dist_none]="38;5;21" +_env_colors[dist_lenny]="38;5;40" +_env_colors[dist_wheezy]="38;5;69" + +_env_colors[base_none]="38;5;196" +_env_colors[base_stable]="38;5;82" +_env_colors[base_testing]="38;5;62" +_env_colors[base_unstable]="38;5;69" + diff --git a/net:anevia.com/user:hhiegel/Environment.zsh b/net:anevia.com/user:hhiegel/Environment.zsh new file mode 100644 index 0000000..e4bde09 --- /dev/null +++ b/net:anevia.com/user:hhiegel/Environment.zsh @@ -0,0 +1,5 @@ + +PATH+=:~/Work/Tools/bin + +export EMAIL="hugues.hiegel@anevia.com" + diff --git a/net:anevia.com/user:hhiegel/Functions.zsh b/net:anevia.com/user:hhiegel/Functions.zsh new file mode 100644 index 0000000..4431ad2 --- /dev/null +++ b/net:anevia.com/user:hhiegel/Functions.zsh @@ -0,0 +1,17 @@ + +__debian_dist() { + _dist=${DIST:-$(awk < ~/.pbuilderrc '/DIST:=/ { gsub(/^.*{DIST:=/, "") ; gsub(/}$/, "") ; print ; exit }')} + print -Pn $C_${_env_colors[dist_$_dist]:-$_env_colors[dist_none]} + ( export | grep -q '^DIST=' ) && print -Pn ";"$color[bold] + print -Pn $_C + print -n $_dist + + print -Pn $C_"38;5;33"$_C"-" + + _base=${BASE:-$(awk < ~/.pbuilderrc '/BASE:=/ { gsub(/^.*{BASE:=/, "") ; gsub(/}$/, "") ; print ; exit }')} + print -Pn $C_${_env_colors[base_$_base]:-$_env_colors[base_none]} + ( export | grep -q '^BASE=' ) && print -Pn ";"$color[bold] + print -Pn $_C + print -n $_base +} + diff --git a/net:anevia.com/user:hhiegel/Prompts.zsh b/net:anevia.com/user:hhiegel/Prompts.zsh new file mode 100644 index 0000000..6a4d7f9 --- /dev/null +++ b/net:anevia.com/user:hhiegel/Prompts.zsh @@ -0,0 +1,3 @@ + +PS1_TASKBAR+=(__debian_dist) + -- cgit v1.2.3 From 1c4b0cc63e2be950e174bd361257f5ae7a4a5655 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Wed, 1 Apr 2015 10:34:54 +0200 Subject: [anevia] Added host-specific config for git --- net:anevia.com/host:git/Environment.zsh | 3 +++ net:anevia.com/host:store | 1 + 2 files changed, 4 insertions(+) create mode 100644 net:anevia.com/host:git/Environment.zsh create mode 120000 net:anevia.com/host:store (limited to 'net:anevia.com') diff --git a/net:anevia.com/host:git/Environment.zsh b/net:anevia.com/host:git/Environment.zsh new file mode 100644 index 0000000..304e0b7 --- /dev/null +++ b/net:anevia.com/host:git/Environment.zsh @@ -0,0 +1,3 @@ + +PS1_USER="38;5;25" + diff --git a/net:anevia.com/host:store b/net:anevia.com/host:store new file mode 120000 index 0000000..c092193 --- /dev/null +++ b/net:anevia.com/host:store @@ -0,0 +1 @@ +host:git \ No newline at end of file -- cgit v1.2.3