Fix "Open terminal here" not working in apps
This commit is contained in:
parent
b28a7774bf
commit
3294f8f6b2
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,10 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
|
|
||||||
|
# Save cwd
|
||||||
|
BASHRCD_WORKDIR=$(pwd)
|
||||||
|
[[ -z "${BASHRCD_WORKDIR}" ]] && BASHRCD_WORKDIR=${HOME}
|
||||||
|
|
||||||
# Cancel execution of system-wide punktdateien-bashrc if user-wide installation is detected
|
# Cancel execution of system-wide punktdateien-bashrc if user-wide installation is detected
|
||||||
if [ -n "${BASHRCD_SYSTEM}" ] && [ -d "${HOME}/.bashrc.d" ] && [ -f "${HOME}/.bashrc.d/startup.sh" ]; then
|
if [ -n "${BASHRCD_SYSTEM}" ] && [ -d "${HOME}/.bashrc.d" ] && [ -f "${HOME}/.bashrc.d/startup.sh" ]; then
|
||||||
unset BASHRCD_SYSTEM
|
unset BASHRCD_SYSTEM
|
||||||
|
@ -86,5 +90,5 @@ for file in startup.d/*; do
|
||||||
done
|
done
|
||||||
|
|
||||||
# Finish startup
|
# Finish startup
|
||||||
cd "${HOME}"
|
cd "${BASHRCD_WORKDIR}"
|
||||||
unset BASHRCD_SYSTEM
|
unset BASHRCD_SYSTEM
|
||||||
|
|
Loading…
Reference in a new issue