summaryrefslogtreecommitdiff
path: root/.bash-powerline.sh
diff options
context:
space:
mode:
Diffstat (limited to '.bash-powerline.sh')
-rw-r--r--.bash-powerline.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/.bash-powerline.sh b/.bash-powerline.sh
index bcbd234..8121f92 100644
--- a/.bash-powerline.sh
+++ b/.bash-powerline.sh
@@ -17,8 +17,10 @@ __powerline() {
readonly SYMBOL_GIT_PUSH='↑'
readonly SYMBOL_GIT_PULL='↓'
- if test -f "../usr/etc/hostname"; then
+ if test -f '../usr/etc/hostname'; then
host=$(<../usr/etc/hostname)
+ elif test -f '/etc/hostname'; then
+ host=$(</etc/hostname)
else
host=$(hostname)
fi