mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
[Fix #60] Do not use parentheses in function names
This commit is contained in:
parent
a3b92bb053
commit
6a9a4ea8d6
22 changed files with 66 additions and 67 deletions
|
|
@ -79,7 +79,7 @@ zle -N zle-line-finish
|
|||
zle -N zle-keymap-select
|
||||
|
||||
# Expands .... to ../..
|
||||
function expand-dot-to-parent-directory-path() {
|
||||
function expand-dot-to-parent-directory-path {
|
||||
if [[ $LBUFFER = *.. ]]; then
|
||||
LBUFFER+='/..'
|
||||
else
|
||||
|
|
@ -89,7 +89,7 @@ function expand-dot-to-parent-directory-path() {
|
|||
zle -N expand-dot-to-parent-directory-path
|
||||
|
||||
# Displays an indicator when completing.
|
||||
function expand-or-complete-with-indicator() {
|
||||
function expand-or-complete-with-indicator {
|
||||
local indicator
|
||||
zstyle -s ':omz:completion' indicator 'indicator'
|
||||
print -Pn "$indicator"
|
||||
|
|
@ -99,7 +99,7 @@ function expand-or-complete-with-indicator() {
|
|||
zle -N expand-or-complete-with-indicator
|
||||
|
||||
# Inserts 'sudo ' at the beginning of the line.
|
||||
function prepend-sudo() {
|
||||
function prepend-sudo {
|
||||
if [[ "$BUFFER" != su(do|)\ * ]]; then
|
||||
BUFFER="sudo $BUFFER"
|
||||
(( CURSOR += 5 ))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue