]> TLD Linux GIT Repositories - tld-ftp-admin.git/blob - shell/bash_profile
- comment out unused code
[tld-ftp-admin.git] / shell / bash_profile
1 # .bash_profile - file executed when logging in
2
3 # identify via remote addr
4 #case "${SSH_CLIENT%% *}" in
5 #192.168.1.1) # ftpadmin
6 #       export FTPADM=ftpadmin
7 #       ;;
8 #esac
9
10 # identify via terminal last login (su, sudo)
11 #if [ -z "$FTPADM" ]; then
12 #       LAST_TTY=$(tty)
13 #       LAST_LOGIN=$(last -if /var/run/utmp | awk -vtty="${LAST_TTY#/dev/}" '$2 == tty && $0 ~ /still logged in/ { print $1; exit; }')
14 #       export FTPADM=$LAST_LOGIN
15 #       unset LAST_TTY LAST_LOGIN
16 #fi
17
18 # per-admin defaults
19 #case "$FTPADM" in
20 #'')
21 #       export FTPADM=$USER
22 #       ;;
23 #esac
24
25 # let each ftp admin have own history file
26 #if [ "$FTPADM" ]; then
27 #       export HISTFILE=$HOME/.history-$FTPADM
28 #       export CDHISTFILE=$HOME/.cd_history-$FTPADM
29 #fi
30 #export EDITOR=vim
31
32 PATH=$PATH:~/tld-ftp-admin/bin