mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-23 02:18:00 +00:00
[#145] Do not depend on the alias module
This commit is contained in:
parent
dbc9dff760
commit
3ed8265e28
@ -7,9 +7,6 @@
|
|||||||
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||||
#
|
#
|
||||||
|
|
||||||
# Load dependencies.
|
|
||||||
omodload 'alias'
|
|
||||||
|
|
||||||
# Serves a directory via HTTP.
|
# Serves a directory via HTTP.
|
||||||
alias http-serve='python -m SimpleHTTPServer'
|
alias http-serve='python -m SimpleHTTPServer'
|
||||||
|
|
||||||
@ -23,22 +20,22 @@ function mkdcd {
|
|||||||
compdef '_path_files -/' mkdcd 2> /dev/null
|
compdef '_path_files -/' mkdcd 2> /dev/null
|
||||||
|
|
||||||
# Changes to a directory and lists its contents.
|
# Changes to a directory and lists its contents.
|
||||||
function cdll {
|
function cdls {
|
||||||
builtin cd "$1" && ll
|
builtin cd "$argv[-1]" && ls "${(@)argv[1,-2]}"
|
||||||
}
|
}
|
||||||
compdef _cd cdll 2> /dev/null
|
compdef _cd cdls 2> /dev/null
|
||||||
|
|
||||||
# Pushes an entry onto the directory stack and lists its contents.
|
# Pushes an entry onto the directory stack and lists its contents.
|
||||||
function pushdll {
|
function pushdls {
|
||||||
builtin pushd "$1" && ll
|
builtin pushd "$argv[-1]" && ls "${(@)argv[1,-2]}"
|
||||||
}
|
}
|
||||||
compdef _cd pushdll 2> /dev/null
|
compdef _cd pushdls 2> /dev/null
|
||||||
|
|
||||||
# Pops an entry off the directory stack and lists its contents.
|
# Pops an entry off the directory stack and lists its contents.
|
||||||
function popdll {
|
function popdls {
|
||||||
builtin popd "$1" && ll
|
builtin popd "$argv[-1]" && ls "${(@)argv[1,-2]}"
|
||||||
}
|
}
|
||||||
compdef _cd popdll 2> /dev/null
|
compdef _cd popdls 2> /dev/null
|
||||||
|
|
||||||
# Prints columns 1 2 3 ... n.
|
# Prints columns 1 2 3 ... n.
|
||||||
function slit {
|
function slit {
|
||||||
|
Loading…
Reference in New Issue
Block a user