1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-06-15 08:01:43 +00:00

[#23] Prevent errors when completion is disabled

This commit is contained in:
Sorin Ionescu
2012-04-03 20:14:08 -04:00
parent d5a94dda74
commit e2859daba4
4 changed files with 113 additions and 113 deletions

View File

@ -17,25 +17,25 @@ alias http-serve='python -m SimpleHTTPServer'
function mkdcd {
[[ -n "$1" ]] && mkdir -p "$1" && cd "$1"
}
compdef _mkdir mkdcd
compdef _mkdir mkdcd 2> /dev/null
# Changes to a directory and lists its contents.
function cdll {
builtin cd "$1" && ll
}
compdef _cd cdll
compdef _cd cdll 2> /dev/null
# Pushes an entry onto the directory stack and lists its contents.
function pushdll {
builtin pushd "$1" && ll
}
compdef _cd pushdll
compdef _cd pushdll 2> /dev/null
# Pops an entry off the directory stack and lists its contents.
function popdll {
builtin popd "$1" && ll
}
compdef _cd popdll
compdef _cd popdll 2> /dev/null
# Prints columns 1 2 3 ... n.
function slit {
@ -46,7 +46,7 @@ function slit {
function pmine {
ps "$@" -U "$USER" -o pid,%cpu,%mem,command
}
compdef _ps pmine
compdef _ps pmine 2> /dev/null
# Finds files and executes a command on them.
function find-exec {