From 102392f4e01690ed0683ebcabcd85c5fcf63fa72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Schmidts?= Date: Fri, 25 Jan 2013 12:06:48 +0100 Subject: [PATCH] do not recalculate darwin kernel version at each prompt set --- liquidprompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liquidprompt b/liquidprompt index 8fcbacc..57bc4db 100755 --- a/liquidprompt +++ b/liquidprompt @@ -108,6 +108,7 @@ case "$LP_OS" in load=$(LANG=C sysctl -n vm.loadavg | awk '{print $2}') echo "$load" } + LP_DWIN_KERNEL_REL_VER=$(uname -r | cut -d . -f 1) ;; SunOS) _lp_cpu_load () { @@ -1205,7 +1206,6 @@ _lp_set_prompt() case "$LP_OS" in Linux|FreeBSD|SunOS) $LP_OLD_PROMPT_COMMAND ;; Darwin) - LP_DWIN_KERNEL_REL_VER=$(uname -r | cut -d . -f 1) case "$(LP_DWIN_KERNEL_REL_VER)" in 11|12) update_terminal_cwd ;; *) $LP_OLD_PROMPT_COMMAND ;;