Skip to content

Commit

Permalink
.bashrc fixed ps
Browse files Browse the repository at this point in the history
  • Loading branch information
fb929 committed Jan 9, 2024
1 parent f4d51f6 commit d3d31e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ if [[ $- == *i* ]] ; then
fi

# save ssh
PARENT="$(ps -o comm --no-headers $PPID)"
PARENT="$(ps -o comm --no-headers $PPID 2>/dev/null)"
case $PARENT in
sshd)
KEEP_VARS="SSH_CLIENT SSH_TTY SSH_AUTH_SOCK SSH_CONNECTION DISPLAY XAUTHORITY"
Expand Down

0 comments on commit d3d31e0

Please sign in to comment.