+ tmux-ip-address plugin with custom hand made fixes about remove beep x07 symbol (represented as \a from ip address values) from status-right bar
This commit is contained in:
16
.tmux/plugins/tmux-ip-address/scripts/ip_address.sh
Executable file
16
.tmux/plugins/tmux-ip-address/scripts/ip_address.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
source "$CURRENT_DIR/helpers.sh"
|
||||
|
||||
print_ip_address() {
|
||||
local ip_address=$(curl --max-time 1.5 --silent http://ip.me)
|
||||
echo ${ip_address}
|
||||
}
|
||||
|
||||
main() {
|
||||
print_ip_address
|
||||
}
|
||||
|
||||
main
|
||||
Reference in New Issue
Block a user