Skip to content

Commit 646074b

Browse files
removed timer from .zshrc
1 parent 91f1e57 commit 646074b

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

airootfs/root/.zshrc

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -240,18 +240,3 @@ eval "$(mcfly init zsh)"
240240

241241
## Run neofetch
242242
#neofetch
243-
244-
# Show time to the user which was the last executed code
245-
function preexec() {
246-
timer=$(($(date +%s%0N)/1000000))
247-
}
248-
249-
function precmd() {
250-
if [ $timer ]; then
251-
now=$(($(date +%s%0N)/1000000))
252-
elapsed=$(($now-$timer))
253-
254-
export RPROMPT="%F{cyan}${elapsed}ms %{$reset_color%}"
255-
unset timer
256-
fi
257-
}

0 commit comments

Comments
 (0)