sh
This commit is contained in:
parent
9b05b663da
commit
3d5e4f5a68
2 changed files with 1 additions and 5 deletions
|
@ -1,8 +1,5 @@
|
|||
[ -n "${ENV}" ] || export ENV="/etc/shell/main.sh"
|
||||
|
||||
SH="$(cat /proc/$$/comm)"
|
||||
export SH
|
||||
|
||||
main_source_directory() {
|
||||
local path="${1}"
|
||||
if [ -d "${path}" ]; then
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PS1="\$(shell_prompt \${?})"
|
||||
PS2="\
|
||||
├ "
|
||||
SH="$(cat /proc/$$/comm)"
|
||||
|
||||
shell_color() {
|
||||
local code="${1}"
|
||||
# shellcheck disable=SC2154
|
||||
case "${SH}" in
|
||||
"bash")
|
||||
printf "\x01\e[0"
|
||||
|
@ -130,7 +130,6 @@ x() {
|
|||
"${@}"
|
||||
}
|
||||
|
||||
# shellcheck disable=SC2154
|
||||
[ "${SH}" = "bash" ] || return
|
||||
|
||||
# shellcheck disable=SC3033
|
||||
|
|
Loading…
Reference in a new issue