mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-11-20 10:51:13 +00:00
47 lines
616 B
Bash
47 lines
616 B
Bash
function cdll() {
|
|
if [[ -n "$1" ]]; then
|
|
builtin cd "$1"
|
|
ls -lFhA
|
|
else
|
|
ls -lFhA
|
|
fi
|
|
}
|
|
|
|
function pushdll() {
|
|
if [[ -n "$1" ]]; then
|
|
builtin pushd "$1"
|
|
ls -lFhA
|
|
else
|
|
ls -lFhA
|
|
fi
|
|
}
|
|
|
|
function popdll() {
|
|
builtin popd
|
|
ls -lFhA
|
|
}
|
|
|
|
function grab() {
|
|
sudo chown -R ${USER} ${1:-.}
|
|
}
|
|
|
|
function reload() {
|
|
source "$HOME/.zshrc"
|
|
}
|
|
|
|
function calc() {
|
|
echo "scale=4; $@" | bc -l
|
|
}
|
|
|
|
function pmine() {
|
|
ps $@ -u $USER -o pid,%cpu,%mem,command
|
|
}
|
|
|
|
function findexec() {
|
|
find . -type f -iname '*'${1:-}'*' -exec ${2:-file} {} \;
|
|
}
|
|
|
|
function httpserve() {
|
|
python -m SimpleHTTPServer
|
|
}
|