-
Notifications
You must be signed in to change notification settings - Fork 1
Home Path
Shih Yu Ho edited this page Oct 15, 2019
·
19 revisions
Slctl 預設使用 ${user.home}/.config/slctl 作為 home path, 用來存放 slctl 使用到的檔案, 如 configs, plugins 等:
-
Unix/MacOS -
~/.config/slctl -
Windows 10 -
C:/Users/<username>/.config/slctl
3.6.x 之前的版本預設的 home 是
~/.sl, 升級 3.7.x 會自動更新目錄到~/.config/slctl
可以使用 slctl home 查看當前的 home path:
$ slctl home
/Users/matt/.config/slctlhome path 不允許包含任何空白 (windows 7 的使用者請特別注意), 可以參考下一章節來做調整: Change Home Path
設定系統變數 SL_HOME 將改變 slctl 的 global home path, 依照不同的作業系統有不同的設定, 請參考 Set System Variables 設置
你也可以在執行任何 slctl command 時, 手動傳入 --home 指定當次 command 的 home path (Overrides $SL_HOME)
$ slctl home --home /some/where/else
/some/where/else- Open system properties
- Select the "Advanced" tab, and the "Environment Variables" button
- Click the first "New..." button.
- Set SL_HOME to the location of your slctl home. e.g.
C:\.config\slctl
- Find out if you're using Bash or ZSH by running the command
echo $SHELLin your Terminal. - Exporting SL_HOME in your shell config (
~/.bashrcor~/.zshrc), e.g.
export SL_HOME=/.config/slctl