mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Merged custom/ and lib/.
Conflicts: custom/aliases.zsh custom/functions.zsh custom/grep.zsh
This commit is contained in:
parent
9a3b68d655
commit
ec4f279445
9 changed files with 130 additions and 162 deletions
|
|
@ -15,3 +15,50 @@ function take() {
|
|||
cd $1
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue