summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJesse Luehrs <jesse.luehrs@stripe.com>2015-01-18 21:25:50 -0800
committerJesse Luehrs <doy@tozt.net>2015-02-22 16:04:58 -0800
commitbba78c7c131745af6621bd24fab81804d1b7d36a (patch)
tree75baffd8a57a5f9703b0e72aea688579e687b994 /bin
parent2e942aefb624f42f3aaf19846338077a37e2b907 (diff)
downloadconf-bba78c7c131745af6621bd24fab81804d1b7d36a.tar.gz
conf-bba78c7c131745af6621bd24fab81804d1b7d36a.zip
need to shorten the prompt a bit
long username + hostname makes it wrap on 80-character terminals
Diffstat (limited to 'bin')
-rwxr-xr-xbin/fancy-prompt1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/fancy-prompt b/bin/fancy-prompt
index 19dbab8..e305bac 100755
--- a/bin/fancy-prompt
+++ b/bin/fancy-prompt
@@ -13,6 +13,7 @@ if ($ARGV[0] eq '--prompt-escape') {
# collect information
chomp(my $hostname = `hostname`);
+$hostname = 'work' if $hostname eq 'st-jesse-luehrs1';
my $cols = `tput cols`;
my $pwd = defined $ENV{PWD} ? $ENV{PWD} : '???';
my $user = defined $ENV{USER} ? $ENV{USER} : '???';