[projects/pld-ftp-admin] commit changes from pldth
glen
glen at pld-linux.org
Tue Jan 14 21:15:55 CET 2014
commit 03f55e495163c5d25a70f608d6cc0521c7d73401
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Wed Sep 12 22:32:04 2012 +0300
commit changes from pldth
shell/bash_profile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/shell/bash_profile b/shell/bash_profile
index 0f7cd64..fbb3e7a 100644
--- a/shell/bash_profile
+++ b/shell/bash_profile
@@ -15,6 +15,7 @@ if [ -z "$FTPADM" ]; then
LAST_TTY=$(tty)
LAST_LOGIN=$(last -if /var/run/utmpx | awk -vtty="${LAST_TTY#/dev/}" '$2 == tty && $0 ~ /still logged in/ { print $1; exit; }')
export FTPADM=$LAST_LOGIN
+ unset LAST_TTY LAST_LOGIN
fi
# per-admin defaults
@@ -35,9 +36,10 @@ glen)
;;
esac
-# let each ftp admin have own bash history
+# let each ftp admin have own history file
if [ "$FTPADM" ]; then
export HISTFILE=$HOME/.history-$FTPADM
+ export CDHISTFILE=$HOME/.cd_history-$FTPADM
fi
export EDITOR=vim
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-ftp-admin.git/commitdiff/03f55e495163c5d25a70f608d6cc0521c7d73401
More information about the pld-cvs-commit
mailing list