-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
work with local non-virttualfish vevns
- Loading branch information
Showing
4 changed files
with
28 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Defined in /var/folders/7z/7p0_kxn92hx5j19278gxgw9r0000gn/T//fish.6l3bme/auto_venv.fish @ line 1 | ||
function auto_venv --description 'automatically activate venv (non-virtualfish)' --on-variable PWD | ||
status --is-command-substitution; and return | ||
functions -q deactivate; and deactivate | ||
test -f venv/bin/activate.fish; and source venv/bin/activate.fish | ||
end |
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,9 @@ | ||
functions -c fish_prompt orig_fish_prompt | ||
|
||
function fish_prompt | ||
if set -q VIRTUAL_ENV | ||
echo -n -s (set_color -b blue white) "(" (basename "$VIRTUAL_ENV") ")" (set_color normal) " " | ||
end | ||
orig_fish_prompt | ||
end | ||
|