Skip to content

Commit

Permalink
Document CTRL+X binding (#16)
Browse files Browse the repository at this point in the history
* Document CTRL+X feature

* fix line n in sed

* Use $ZSHRC variable exported by Zap

* Ask community though to #15

* fix issue link
  • Loading branch information
mamaraddio authored Sep 23, 2023
1 parent 979d4cb commit c917cf0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,11 @@ Options to supercharge your zsh experience
- Auto Color LS<BR>
![2022-11-10-22:00:31](https://user-images.githubusercontent.com/696094/201253556-cd469d4b-1ce1-412d-8ba7-da234c1e79cc.png)

- <kbd>CTRL</kbd>+<kbd>x</kbd> reload your `.zshrc` file.<BR>If you wish to disable that feature run the following command. Also consider express your thought to [#15](https://github.com/zap-zsh/supercharge/issues/15)
```zsh
sed -i '52 s/^/#/' $ZAP_PLUGIN_DIR/supercharge/supercharge.plugin.zsh
```


### ⚠️ Note:
If you wish to use also [zap-zsh/exa](https://github.com/zap-zsh/exa) make sure **exa** is loaded **after** this plugin. Take a look at [this issue](https://github.com/zap-zsh/exa/issues/3)
2 changes: 1 addition & 1 deletion supercharge.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ autoload -Uz colors && colors
export PATH="$HOME/.local/bin:$PATH"

# bindings
bindkey -s '^x' '^usource ${ZDOTDIR:-$HOME}/.zshrc\n'
bindkey -s '^x' '^usource $ZSHRC\n'
bindkey -M menuselect '?' history-incremental-search-forward
bindkey -M menuselect '/' history-incremental-search-backward

Expand Down

0 comments on commit c917cf0

Please sign in to comment.