mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
show processes and confirmation for remove files
This commit is contained in:
parent
c2e4c17542
commit
e6661db7ea
2 changed files with 14 additions and 1 deletions
|
|
@ -23,6 +23,11 @@ alias sl=ls # often screw this up
|
||||||
alias afind='ack-grep -il'
|
alias afind='ack-grep -il'
|
||||||
|
|
||||||
alias x=extract
|
alias x=extract
|
||||||
|
|
||||||
alias reload="source ~/.zshrc"
|
alias reload="source ~/.zshrc"
|
||||||
alias galias='alias | grep'
|
alias galias='alias | grep'
|
||||||
|
|
||||||
|
# Request confirmation before attempting to remove each file, regardless of the file's permissions, or
|
||||||
|
# whether or not the standard input device is a terminal. The -i option overrides any previous -f options.
|
||||||
|
alias rm="rm -i"
|
||||||
|
|
||||||
|
alias psg='show_processes'
|
||||||
|
|
|
||||||
|
|
@ -15,3 +15,11 @@ function take() {
|
||||||
cd $1
|
cd $1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function show_processes() {
|
||||||
|
if (($# == 0)); then
|
||||||
|
ps -ef
|
||||||
|
else
|
||||||
|
echo " UID PID PPID C STIME TTY TIME CMD"
|
||||||
|
ps -ef | grep $*
|
||||||
|
fi
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue