-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4f217d5
commit 095671c
Showing
4 changed files
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
function fish_prompt | ||
set --local exit_code $status # save previous exit code | ||
set --local exit_code $status # save previous exit code | ||
|
||
echo -e -n (_pure_prompt_beginning) # init prompt context (clear current line, etc.) | ||
|
||
if test $pure_compact_mode = false; or test "$PWD" != "$HOME" #if compact mode is enabled and pwd = ~, don't show the first line | ||
echo -e (_pure_prompt_first_line) # print current path, git branch/status, command duration | ||
end | ||
|
||
echo -e -n (_pure_prompt_beginning) # init prompt context (clear current line, etc.) | ||
echo -e (_pure_prompt_first_line) # print current path, git branch/status, command duration | ||
_pure_place_iterm2_prompt_mark # place iTerm shell integration mark | ||
echo -e -n (_pure_prompt $exit_code) # print prompt | ||
echo -e (_pure_prompt_ending) # reset colors and end prompt | ||
echo -e -n (_pure_prompt $exit_code) # print prompt | ||
echo -e (_pure_prompt_ending) # reset colors and end prompt | ||
|
||
set _pure_fresh_session false | ||
end |