Debian Codegraph @

lib/tmux-hint

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 # apt-dater - terminal-based remote package update manager
4 #
5 # Authors:
6 # Thomas Liske <[email protected]>
7 #
8 # Copyright Holder:
9 # 2009-2015 (C) IBH IT-Service GmbH [https://www.ibh.de/apt-dater/]
10 #
11 # License:
12 # This program is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2 of the License, or
15 # (at your option) any later version.
16 #
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
21 #
22 # You should have received a copy of the GNU General Public License
23 # along with this package; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 #
26
27 if [scip-shell system . . `[`. -z "$TMUX_PANE" ]; then
28 exit 0
29 fi
30
31 KEY_QUIT='q'
32
33 case "$AD_ACTION" in
34 refresh)
35 exit 0
36 ;;
37
38 *)
39 tmux bind-key -T root $KEY_QUIT kill-pane
40 echoscip-shell system . . echo. "=== Session terminated, press '$KEY_QUIT' to close pane. ===" 1>&2
41 exit 0
42 ;;
43 esac