summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhugues <hugues@a0e5b806-a6f9-0310-978d-cbce73f8a913>2007-07-25 10:44:31 +0000
committerHugues Hiegel <hugues@hiegel.fr>2008-03-07 14:15:15 +0100
commit2060dad3e988021bbb5ea110b78c3caf89a0f0dd (patch)
tree907850733b6931e380a14192cde489e6b5dc1615
parent5efc79402925115905b82e18fedf59d763f08a03 (diff)
Comments up-to-date
git-svn-id: svn+ssh://hugues@maison/opt/svn/private/hugues@506 a0e5b806-a6f9-0310-978d-cbce73f8a913
-rw-r--r--.zshrc15
1 files changed, 9 insertions, 6 deletions
diff --git a/.zshrc b/.zshrc
index 6208cdd..52d980b 100644
--- a/.zshrc
+++ b/.zshrc
@@ -12,12 +12,14 @@
# With that, file ``10_Toto.zsh'' would be parsed before
# file ``20_Tutu.zsh'', allowing you ordering your scripts.
#
-# If you want to make host-specific configurations, create a
-# file named with the root of your configuration file, and
-# append to it ".$(hostname -s)". (replace "zsh" by the hostname.
-# if you have a computer named "zsh", well....... :-) )
-# For example, for specific configuration for the host HAL in
-# the file 10_Toto.zsh, you would create a file named 10_Toto.HAL
+# If you want to make user, host or network specific configurations,
+# add your specific scripts to the folders
+# - "user:$(whoami)" for user-specific conf,
+# - "host:$(hostname -s)" for host-specific conf,
+# - "net:$(domainname)" for network-specific conf,
+# rename your scripts to the form mentionned above, minus the "??_"
+# prefix. An original script prefixed by a two-digits number SHOULD
+# be present on the $ZDOTDIR folder, even if empty.
#
ZDOTDIR=${ZDOTDIR:-~/.zsh}
@@ -54,6 +56,7 @@ if [ -d $ZDOTDIR ]; then
done
fi
+# For sudo shells
if [ "$USER" = "root" ]
then
[ "`pwd`" = ~ ] && cd ~root