File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 1616[ ](fg:#1d2230)\
1717\n ▶▶ """
1818
19+ # have to make the changes in the 2nd line regarding the icon (where have to replace the linux to tcet)
20+
21+ # -------
1922[directory ]
2023style = " fg:#e3e5e5 bg:#769ff0"
2124format = " [ $path ]($style)"
Original file line number Diff line number Diff line change @@ -241,3 +241,17 @@ eval "$(mcfly init zsh)"
241241# # Run neofetch
242242# neofetch
243243
244+ # Show time to the user which was the last executed code
245+ function preexec() {
246+ timer=$(( $(date +% s% 0 N)/ 1000000 ))
247+ }
248+
249+ function precmd() {
250+ if [ $timer ]; then
251+ now=$(( $(date +% s% 0 N)/ 1000000 ))
252+ elapsed=$(( $now - $timer ))
253+
254+ export RPROMPT=" %F{cyan}${elapsed} ms %{$reset_color %}"
255+ unset timer
256+ fi
257+ }
You can’t perform that action at this time.
0 commit comments