File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
docs-site/site/content/docs/latest/configuration Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,15 @@ Since it is not possible to tamper with parent shell process environment from a
3636# The following script will source a reload_session.sh script under
3737# current shell session without creating a nested shell session.
3838# ############################################################################
39+ dotfiles_cli_install_path=$( command -v dotfiles)
40+ # Path resolution to support Homebrew installation
41+ if [[ ${dotfiles_cli_install_path} == /usr/local/bin/dotfiles ]]; then
42+ homebrew_dotfiles_cli_install_path=$( dirname $( readlink ${dotfiles_cli_install_path} ) )
43+ homebrew_dotfiles_cli_install_path=${homebrew_dotfiles_cli_install_path/ bin/ libexec}
44+ homebrew_dotfiles_cli_install_path=${homebrew_dotfiles_cli_install_path/ ..\/ Cellar// usr/ local/ Cellar}
45+ DOTFILES_CLI_INSTALL_PATH=${homebrew_dotfiles_cli_install_path}
46+ fi
47+
3948DOTFILES_CLI_INSTALL_PATH=${DOTFILES_CLI_INSTALL_PATH:- ${HOME} / .config/ dotfiles-cli}
4049DOTFILES_CLI_RELOAD_SESSION_SCRIPT_PATH=${DOTFILES_CLI_INSTALL_PATH} /reload_session.sh
4150
@@ -44,7 +53,7 @@ if [[ -e ${DOTFILES_CLI_RELOAD_SESSION_SCRIPT_PATH} ]]; then
4453 source ${DOTFILES_CLI_RELOAD_SESSION_SCRIPT_PATH}
4554else
4655 echo -e ' Dotfiles CLI is not installed, cannot load plugins/reload session. path: $DOTFILES_CLI_INSTALL_PATH'
47- fi
56+ fi
4857```
4958
5059{{< callout info >}}
Original file line number Diff line number Diff line change @@ -83,6 +83,15 @@ SHELL_RC_FILE_HEADER="""\\
8383# The following script will source a reload_session.sh script under \\
8484# current shell session without creating a nested shell session. \\
8585############################################################################# \\
86+ dotfiles_cli_install_path=\$ (command -v dotfiles) \\
87+ # Path resolution to support Homebrew installation \\
88+ if [[ \$ {dotfiles_cli_install_path} == /usr/local/bin/dotfiles ]]; then \\
89+ homebrew_dotfiles_cli_install_path=\$ (dirname \$ (readlink \$ {dotfiles_cli_install_path})) \\
90+ homebrew_dotfiles_cli_install_path=\$ {homebrew_dotfiles_cli_install_path/bin/libexec} \\
91+ homebrew_dotfiles_cli_install_path=\$ {homebrew_dotfiles_cli_install_path/..\\\\ /Cellar//usr/local/Cellar} \\
92+ DOTFILES_CLI_INSTALL_PATH=\$ {homebrew_dotfiles_cli_install_path} \\
93+ fi \\
94+ \\
8695DOTFILES_CLI_INSTALL_PATH=\$ {DOTFILES_CLI_INSTALL_PATH:-\$ {HOME}/.config/dotfiles-cli} \\
8796DOTFILES_CLI_RELOAD_SESSION_SCRIPT_PATH=\$ {DOTFILES_CLI_INSTALL_PATH}/reload_session.sh \\
8897 \\
You can’t perform that action at this time.
0 commit comments