diff options
| author | Marc Vertes <mvertes@free.fr> | 2020-02-24 11:32:06 +0100 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2020-02-24 11:32:06 +0100 |
| commit | 006144023475d8fc8764c6bbd90328489955bcda (patch) | |
| tree | 8a66adfcdda354e2f7a5d1021171adf12cb25d20 /.bash-powerline.sh | |
| parent | d1622279f7eca5bb2e49c38d6faa5638d1517b82 (diff) | |
update
Diffstat (limited to '.bash-powerline.sh')
| -rw-r--r-- | .bash-powerline.sh | 4 |
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 |
