]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
shell/rc: Rename timeout_setup_shell_lock() to _logout().
authorSimon Ruderich <simon@ruderich.org>
Fri, 27 Dec 2013 16:55:46 +0000 (17:55 +0100)
committerSimon Ruderich <simon@ruderich.org>
Fri, 27 Dec 2013 16:55:46 +0000 (17:55 +0100)
shell/rc

index c3cfade3fe47375778746c16d279912d2e4d159e..dcb4cc16d5ddae0281b1b9bb81606c929d063bee 100644 (file)
--- a/shell/rc
+++ b/shell/rc
@@ -49,10 +49,10 @@ timeout_setup_tmux_lock() {
         echo "Falling back to shell timeout." >&2
         echo
 
-        timeout_setup_shell_lock
+        timeout_setup_shell_logout
     fi
 }
-timeout_setup_shell_lock() {
+timeout_setup_shell_logout() {
     echo "Auto-logout after $timeout seconds (TTY detected)."
     TMOUT=$timeout
     echo
@@ -97,14 +97,14 @@ case "$TERM" in
             esac
         else
             echo 'TERM=screen but neither $STY nor $TMUX found!' >&2
-            timeout_setup_shell_lock
+            timeout_setup_shell_logout
         fi
         ;;
 
     *)
         case `tty` in
             /dev/tty[0-9]*)
-                timeout_setup_shell_lock
+                timeout_setup_shell_logout
                 ;;
         esac
         ;;