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
Append [grid] to prompt when we think we're running from the grid.
[profile.git]
/
.profile.d
/
prompt.bashrc
diff --git
a/.profile.d/prompt.bashrc
b/.profile.d/prompt.bashrc
index
e6a8236
..
ca55679
100644
(file)
--- a/
.profile.d/prompt.bashrc
+++ b/
.profile.d/prompt.bashrc
@@
-12,6
+12,12
@@
if [ ! -z "$SSH_FORWARDED" ]; then
fi
fi
+# Unscientific check for grid jobs.
+case ${SSH_CLIENT##* } in
+ 22|2222);;
+ *) SSH_FORWARDED="$SSH_FORWARDED [grid]"
+esac
+
info="$HOSTNAME$SSH_FORWARDED"
# Check for vim.