From 7fd2b80d2fe52de45ddb93ab9013c7d2af805497 Mon Sep 17 00:00:00 2001 From: Christopher Beckmann Date: Sat, 27 May 2023 20:33:03 +0200 Subject: [PATCH] Update '.config/tmux/myip.sh' --- .config/tmux/myip.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.config/tmux/myip.sh b/.config/tmux/myip.sh index 43dfb35..f4fe867 100755 --- a/.config/tmux/myip.sh +++ b/.config/tmux/myip.sh @@ -6,18 +6,12 @@ function get_ip { INTERFACES=$( ip a show | grep -E "^[0-9]{0,3}:" | cut -d ' ' -f 2 | cut -d : -f 1 ) -local _length -_length=60 - for ni in $INTERFACES do if [[ $ni != "lo" ]] && [[ ! $ni =~ "veth" ]] && [[ ! $ni =~ "br-" ]] && [[ ! $ni =~ "docker_" ]]; then IP="$(get_ip $ni)" if [[ ! -z $IP ]]; then echo -n " #[fg=#${COLOR_ACCENT}]$ni #[fg=white]$IP " - _length=$(($_length + 30)) fi fi -done - -export TMUX_LENGTH="$_length" \ No newline at end of file +done \ No newline at end of file