mirror of
https://github.com/eepykate/fet.sh.git
synced 2026-11-23 20:11:38 +00:00
Don't report terminal as tmux
This commit is contained in:
1 parent
1f0adf29de
commit
0a43ea82f3
1 file changed
+1
-1
@@ -33,7 +33,7 @@ if [ -e /proc/$$/comm ]; then
|
|||||||
# get name of binary
|
# get name of binary
|
||||||
read -r name < "/proc/$ppid/comm"
|
read -r name < "/proc/$ppid/comm"
|
||||||
case $name in
|
case $name in
|
||||||
*sh|"${0##*/}") ;; # skip shells
|
*sh|"${0##*/}"|tmux*) ;; # skip shells
|
||||||
*[Ll]ogin*|*init*) break;; # exit when the top is reached
|
*[Ll]ogin*|*init*) break;; # exit when the top is reached
|
||||||
*) term="$name" # anything else can be assumed to be the terminal
|
*) term="$name" # anything else can be assumed to be the terminal
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in new issue
Block a user