pld-ftp-admin: shell/bash_profile, shell/bashrc - update to be more generic
glen
glen at pld-linux.org
Wed May 27 00:39:43 CEST 2009
Author: glen Date: Tue May 26 22:39:43 2009 GMT
Module: pld-ftp-admin Tag: HEAD
---- Log message:
- update to be more generic
---- Files affected:
pld-ftp-admin/shell:
bash_profile (1.5 -> 1.6) , bashrc (1.12 -> 1.13)
---- Diffs:
================================================================
Index: pld-ftp-admin/shell/bash_profile
diff -u pld-ftp-admin/shell/bash_profile:1.5 pld-ftp-admin/shell/bash_profile:1.6
--- pld-ftp-admin/shell/bash_profile:1.5 Sun Jan 6 02:52:54 2008
+++ pld-ftp-admin/shell/bash_profile Wed May 27 00:39:38 2009
@@ -1,10 +1,10 @@
# .bash_profile - file executed when logging in
-export EDITOR=vim
-
-# glen ;)
-if [ "${SSH_CONNECTION%% *}" = "194.106.120.90" ]; then
+case "${SSH_CLIENT%% *}" in
+194.106.120.90|84.50.110.50) # glen ;)
+ export EDITOR=vim
export TZ=EET
+ export FTPADM=glen
case $(id -un) in
pldth)
echo -ne "\033kth at ftp\033\\"
@@ -13,4 +13,4 @@
echo -ne "\033kac at ftp\033\\"
;;
esac
-fi
+esac
================================================================
Index: pld-ftp-admin/shell/bashrc
diff -u pld-ftp-admin/shell/bashrc:1.12 pld-ftp-admin/shell/bashrc:1.13
--- pld-ftp-admin/shell/bashrc:1.12 Thu Aug 28 16:41:44 2008
+++ pld-ftp-admin/shell/bashrc Wed May 27 00:39:38 2009
@@ -36,7 +36,7 @@
alias h='history $(($LINES-6))'
# glen ;)
-if [ "${SSH_CONNECTION%% *}" = "194.106.120.90" ]; then
+if [ "$FTPADM" = "glen" ]; then
[ -f /usr/share/okas/bashrc ] && . /usr/share/okas/bashrc
fi
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-ftp-admin/shell/bash_profile?r1=1.5&r2=1.6&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-ftp-admin/shell/bashrc?r1=1.12&r2=1.13&f=u
More information about the pld-cvs-commit
mailing list