This commit is contained in:
1
files/zsh/rm-orphaned-zshes.sh
Normal file
1
files/zsh/rm-orphaned-zshes.sh
Normal file
@@ -0,0 +1 @@
|
||||
pgrep -f zsh | xargs -I {} sh -c 'if [ "$(ps -o ppid= -p {})" -eq 1 ]; then kill {}; fi'
|
||||
Reference in New Issue
Block a user