do not recalculate darwin kernel version at each prompt set
This commit is contained in:
parent
6e2a35cafd
commit
102392f4e0
@ -108,6 +108,7 @@ case "$LP_OS" in
|
|||||||
load=$(LANG=C sysctl -n vm.loadavg | awk '{print $2}')
|
load=$(LANG=C sysctl -n vm.loadavg | awk '{print $2}')
|
||||||
echo "$load"
|
echo "$load"
|
||||||
}
|
}
|
||||||
|
LP_DWIN_KERNEL_REL_VER=$(uname -r | cut -d . -f 1)
|
||||||
;;
|
;;
|
||||||
SunOS)
|
SunOS)
|
||||||
_lp_cpu_load () {
|
_lp_cpu_load () {
|
||||||
@ -1205,7 +1206,6 @@ _lp_set_prompt()
|
|||||||
case "$LP_OS" in
|
case "$LP_OS" in
|
||||||
Linux|FreeBSD|SunOS) $LP_OLD_PROMPT_COMMAND ;;
|
Linux|FreeBSD|SunOS) $LP_OLD_PROMPT_COMMAND ;;
|
||||||
Darwin)
|
Darwin)
|
||||||
LP_DWIN_KERNEL_REL_VER=$(uname -r | cut -d . -f 1)
|
|
||||||
case "$(LP_DWIN_KERNEL_REL_VER)" in
|
case "$(LP_DWIN_KERNEL_REL_VER)" in
|
||||||
11|12) update_terminal_cwd ;;
|
11|12) update_terminal_cwd ;;
|
||||||
*) $LP_OLD_PROMPT_COMMAND ;;
|
*) $LP_OLD_PROMPT_COMMAND ;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user