diff options
author | Cody Hiar <codyfh@gmail.com> | 2017-06-09 08:03:15 -0600 |
---|---|---|
committer | Cody Hiar <codyfh@gmail.com> | 2017-06-10 16:00:35 -0600 |
commit | 12825d5147f5c0b1636dbda5ba34790d7c7bb236 (patch) | |
tree | 4e19cf279bd5aaed07209b21dbb2203d9f211a25 /powerline.sh | |
parent | f7e44ef5b68574a3803f27dc06143abecae430ca (diff) |
Moving files, cleaning up bug with drawer close (closing drawer in 2 places)
Diffstat (limited to 'powerline.sh')
-rwxr-xr-x | powerline.sh | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/powerline.sh b/powerline.sh deleted file mode 100755 index 8baf3f2..0000000 --- a/powerline.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash -RS="" -LS="" - -if [[ "$1" == "left" ]]; then - echo -n "#[fg=colour235, bg=colour142] $(tmux display-message -p '#S') #[fg=colour142, bg=colour241]$LS#[default]" - echo -n "#[fg=colour223, bg=colour241] $(hostname) #[fg=colour241, bg=colour235]$LS#[default]" -fi - -if [[ "$1" == "right" ]]; then - IP_ADDRESS=$(ip addr show | grep "inet[^6]" | grep -v "\(127.0.0.1\|docker\)" | tr -s ' ' | cut -d ' ' -f3 | cut -d '/' -f1) - echo -n "#[fg=colour235, bg=colour241]$RS#[fg=colour223, bg=colour241] ⓛ $IP_ADDRESS" - WAN_IP=$(curl --max-time 2 -s http://whatismyip.akamai.com/) - echo -n " ⓦ $WAN_IP #[default]" - DATE=$(date +"%b %d, %H:%M") - echo -n "#[fg=colour241, bg=colour142]$RS#[fg=colour235] $DATE #[default]" -fi |