Skip to content

Commit

Permalink
Do not run __portman_sync_env during init
Browse files Browse the repository at this point in the history
  • Loading branch information
canac committed Mar 20, 2024
1 parent 707bd73 commit d8fb19c
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
- run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
./e2e/setup.sh
./e2e/test_${{ matrix.shell }}.${{ matrix.shell }}
./e2e/test.${{ matrix.shell }}
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions src/shells/init.bash
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,3 @@ if [[ -z "$PROMPT_COMMAND" ]]; then
elif [[ "$PROMPT_COMMAND" != *"__portman_sync_env"* ]]; then
PROMPT_COMMAND="__portman_sync_env;$PROMPT_COMMAND"
fi

__portman_sync_env
2 changes: 0 additions & 2 deletions src/shells/init.fish
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,3 @@ function __portman_preexec_hook --on-event fish_preexec
# Without clearing the cd hook, the cd hook and prompt hook would both sync the port
functions -e __portman_cd_hook
end

__portman_prompt_hook
2 changes: 0 additions & 2 deletions src/shells/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,3 @@ portman() {
autoload -Uz add-zsh-hook
add-zsh-hook chpwd __portman_sync_env
add-zsh-hook precmd __portman_sync_env

__portman_sync_env

0 comments on commit d8fb19c

Please sign in to comment.