clean up shell programming style to fit ZSH
This commit is contained in:
parent
59e6bfbdfd
commit
89eec57d06
1 changed files with 2 additions and 2 deletions
|
|
@ -125,7 +125,7 @@ if [[ $+functions[_zsh_highlight] -eq 0 ]]; then
|
||||||
# inserts printable characters into $BUFFER
|
# inserts printable characters into $BUFFER
|
||||||
#
|
#
|
||||||
function ordinary-key-press() {
|
function ordinary-key-press() {
|
||||||
if [[ $KEYS = [[:print:]] ]]; then
|
if [[ $KEYS == [[:print:]] ]]; then
|
||||||
region_highlight=()
|
region_highlight=()
|
||||||
fi
|
fi
|
||||||
zle .self-insert
|
zle .self-insert
|
||||||
|
|
@ -357,7 +357,7 @@ _history-substring-search-up-history() {
|
||||||
|
|
||||||
# we have reached the absolute top of history
|
# we have reached the absolute top of history
|
||||||
if [[ $HISTNO -eq 1 ]]; then
|
if [[ $HISTNO -eq 1 ]]; then
|
||||||
BUFFER=''
|
BUFFER=
|
||||||
|
|
||||||
# going up from somewhere below the top of history
|
# going up from somewhere below the top of history
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue