summaryrefslogtreecommitdiff
path: root/vpn
diff options
context:
space:
mode:
Diffstat (limited to 'vpn')
-rwxr-xr-xvpn8
1 files changed, 8 insertions, 0 deletions
diff --git a/vpn b/vpn
index 8e75c83..33e2706 100755
--- a/vpn
+++ b/vpn
@@ -31,6 +31,11 @@
# Configurations
CONF_DIR=YOUR_CONFIG_DIR
+set_terminal_title()
+{
+ echo -ne "\033]0;$1 VPN\007"
+}
+
set_routes()
{
local devtun=tun0
@@ -46,3 +51,6 @@ fi
set_routes
+# Change title of current terminal
+set_terminal_title $TYPE
+