-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.profile
64 lines (53 loc) · 1.29 KB
/
.profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# ~/.bash_profile: executed by bash(1) for login shells.
# vim:set ts=4 sw=4 ai et:
test -f ~/.bashrc && source ~/.bashrc
if tty -s
then
stty -ixon
stty flush ^O
stty -echoctl
#eval $(resize)
fi
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
#PS1='${WINDOW}[\u@\h \w]\$ '
PS1='${WINDOW}[\u@\h \w$(parse_git_branch)]\$ '
PS2="Continue> "
ulimit -c 0
umask 022
title
echo;
bigboard
#pom; echo
screen -ls
echo
#test -f ~/.agent && . ~/.agent
#if [ -n "$SSH_AGENT_PID" ] && \
# [ -f /proc/$SSH_AGENT_PID/cmdline ] && \
# grep -qa ^ssh-agent /proc/$SSH_AGENT_PID/cmdline
#then
# echo Agent pid $SSH_AGENT_PID already running
#else
# eval $(ssh-agent)
# echo "export SSH_AGENT_PID=\"$SSH_AGENT_PID\"" > ~/.agent
# echo "export SSH_AUTH_SOCK=\"$SSH_AUTH_SOCK\"" >> ~/.agent
#fi
#echo
for i in \
~/dotfiles-public/.profile.$HOSTNAME \
~/dotfiles-private/.profile \
~/dotfiles-private/.profile.$HOSTNAME \
~/.profile.$HOSTNAME \
~/.profile.local \
;
do
test -f $i && source $i
done
#vim-r;echo
# Ignore ^D in fist screen only
if [ "$WINDOW" = 0 -a $(id -u) != 0 ]
then set -o ignoreeof
else set +o ignoreeof
fi
#shopt -s checkwinsize