From: Simon Ruderich Date: Fri, 27 Dec 2013 16:55:46 +0000 (+0100) Subject: shell/rc: Rename timeout_setup_shell_lock() to _logout(). X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=0d325359d2f73d7918eac85a83fd219fa6c88009;p=config%2Fdotfiles.git shell/rc: Rename timeout_setup_shell_lock() to _logout(). --- diff --git a/shell/rc b/shell/rc index c3cfade..dcb4cc1 100644 --- 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 ;;