-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for Nix build environment
- Loading branch information
1 parent
daeb7ed
commit 6dd1adc
Showing
3 changed files
with
24 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,17 @@ | ||
function _pure_prompt_nixdevshell \ | ||
--description "Indicate if nix develop shell is activated" | ||
|
||
if set --query pure_enable_nixdevshell; | ||
and test "$pure_enable_nixdevshell" = true | ||
|
||
set --local nixdevshell '' | ||
set --local nixdevshell_color (_pure_set_color $pure_color_nixdevshell) | ||
if test -n "$IN_NIX_SHELL" | ||
set nixdevshell $IN_NIX_SHELL | ||
end | ||
|
||
if test -n $nixdevshell | ||
echo "$pure_symbol_nixdevshell_prefix$nixdevshell_color$nixdevshell" | ||
end | ||
end | ||
end |