git://git.iain.cx/iain
/
profile.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Try to change to directory from which become was run.
[profile.git]
/
.profile.d
/
prompt.bashrc
diff --git
a/.profile.d/prompt.bashrc
b/.profile.d/prompt.bashrc
index
44773fc
..
2145c22
100644
(file)
--- a/
.profile.d/prompt.bashrc
+++ b/
.profile.d/prompt.bashrc
@@
-4,8
+4,8
@@
SSH_FORWARDED=$(get_remote_ip)
if [ ! -z "$SSH_FORWARDED" ]; then
if [ "$SSH_FORWARDED" = "localhost" ]; then
SSH_FORWARDED=
if [ ! -z "$SSH_FORWARDED" ]; then
if [ "$SSH_FORWARDED" = "localhost" ]; then
SSH_FORWARDED=
- elif [ -f
~
/.ssh/forwarded ]; then
- for forwarded in $(<
~
/.ssh/forwarded); do
+ elif [ -f
${PROFILE_HOME:-~}
/.ssh/forwarded ]; then
+ for forwarded in $(<
${PROFILE_HOME:-~}
/.ssh/forwarded); do
if echo "$SSH_FORWARDED" | grep "$forwarded" &>/dev/null; then
SSH_FORWARDED=
fi
if echo "$SSH_FORWARDED" | grep "$forwarded" &>/dev/null; then
SSH_FORWARDED=
fi