-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: workspaced zshrc and documents
- Loading branch information
Showing
4 changed files
with
43 additions
and
13 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,17 @@ | ||
# POST executed after the shell is loaded | ||
# This file is loaded after .zshrc | ||
|
||
# This file can be empty of deleted if not needed | ||
# Loading Order | ||
# vscode ==(inject PROJECT_FOLDER and check settings.json)==> source.zsh (PreHandling) | ||
# source.zsh ==(source env.zsh)==> env.zsh | ||
# source.zsh ==(Check Mode)==> Do any IF condition or keep continue | ||
# source.zsh ==(exec zsh -i)==> ~/.zshrc | ||
# ~/.zshrc ==(contains weapon_vscode_launch_helper function)==> launch_helper.zsh | ||
# ~/.zshrc ==(if set, PROJECT_FOLDER and .vscode/.zshrc exists, source it)==> .vscode/.zshrc | ||
|
||
# you can define any function | ||
|
||
if [ -d "$PROJECT_FOLDER/venv" ]; then | ||
source $PROJECT_FOLDER/venv/bin/activate | ||
fi |
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,11 @@ | ||
# all zsh file launch order | ||
|
||
```mermaid | ||
graph TD; | ||
vscode ==(inject PROJECT_FOLDER and check settings.json)==> source.zsh(.vscode/source.zsh) | ||
source.zsh ==(1.source env.zsh)==> source.zsh_enved(.vscode/source.zsh) ==(2.Check Mode)==> source.zsh_mode(.vscode/source.zsh) ==> source.zsh_call_zsh(.vscode/source.zsh) & node(execute other commands like netcat handler) | ||
source.zsh_call_zsh(.vscode/source.zsh) ==(exec zsh -i)==> home_zshrc(~/.zshrc) | ||
home_zshrc ==(contains weapon_vscode_launch_helper function)==> home_zshrc_call_helper(~/.zshrc) | ||
home_zshrc_call_helper ==(if set env PROJECT_FOLDER and file .vscode/.zshrc exists, source it)==> execute_project_folder_zshrc(.vscode/.zshrc) | ||
``` |
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