Skip to content

Commit

Permalink
move duration to left prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
glasserc committed May 9, 2016
1 parent 01c3a44 commit 6e32d8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 6 additions & 0 deletions dot/config/fish/functions/fish_prompt.fish
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ function fish_prompt --description 'Write out the prompt'
end
end

if test $CMD_DURATION -gt 5000
__need_space
echo -n -s $CMD_DURATION 'ms'
set -g __need_space true
end

set -g __need_space ''
echo -n -s "$suffix "

Expand Down
4 changes: 0 additions & 4 deletions dot/config/fish/functions/fish_right_prompt.fish
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ function fish_right_prompt

echo -n -s (set_color $color_cwd) (prompt_pwd) (set_color normal)

if test $CMD_DURATION -gt 5000
echo -n -s ' ' $CMD_DURATION 'ms'
end

__show_only_git_branch
end

Expand Down

0 comments on commit 6e32d8a

Please sign in to comment.