remove comments and fix typo

This commit is contained in:
Jakobus Schürz 2021-10-11 07:59:34 +02:00
parent c809860cd5
commit bfce13a609

View file

@ -20,7 +20,7 @@ promptcommandmunge () {
esac esac
EXIT EXIT
} }
## this function updates in combination with PROMPT_COMMAND the shell-environment-variables in tmus-sessions, ## this function updates in combination with PROMPT_COMMAND the shell-environment-variables in tmux-sessions,
# every time prompt is called. It does it only, when called from tmux (Environment TMUX is set) # every time prompt is called. It does it only, when called from tmux (Environment TMUX is set)
function _tmux_hook() { function _tmux_hook() {
# [ -z "${TMUX+x}" ] || eval "$(tmux show-environment -s)" # [ -z "${TMUX+x}" ] || eval "$(tmux show-environment -s)"
@ -31,10 +31,6 @@ function _tmux_hook() {
} }
# Append `;` if PROMPT_COMMAND is not empty
#PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND;}_tmux_hook"
# To make the code more reliable on detecting the default umask # To make the code more reliable on detecting the default umask
function _umask_hook { function _umask_hook {
# Record the default umask value on the 1st run # Record the default umask value on the 1st run
@ -47,9 +43,6 @@ function _umask_hook {
fi fi
} }
# Append `;` if PROMPT_COMMAND is not empty
#PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND;}_umask_hook"
cpb() { cpb() {
scp "$1" ${SSH_CLIENT%% *}:~/Work scp "$1" ${SSH_CLIENT%% *}:~/Work
} }