add pp which prints process info closer to what you need, add ss which sources two active updated scripts

This commit is contained in:
hophacker 2020-10-25 18:08:56 +08:00
parent aa950a33d9
commit 92d17d5e20
2 changed files with 4 additions and 3 deletions

View File

@ -261,3 +261,6 @@ alias docker_purge='docker stop $(docker ps -qa);docker rm $(docker ps -qa)'
alias yarn_sass="SASS_BINARY_SITE=https://npm.taobao.org/mirrors/node-sass/ yarn"
alias vim="nvim"
alias k="kubectl"
## source files
alias ss="source ~/.yadr/zsh/functions.zsh; source ~/.yadr/zsh/aliases.zsh"

View File

@ -17,7 +17,7 @@ function contains() {
echo "n"
return 1
}
pp() { ps aux | grep "$1\|USER" | grep -v "grep" }
function getIP () {
echo $(grep $1 ~/.ssh/config -A 1 | tail -1 | tr -s ' ' | cut -d ' ' -f 3)
}
@ -433,8 +433,6 @@ function dc {
function get_ip_of_ssh_hostname {
ssh -G $1 | awk '/^hostname / { print $2 }'
}
unalias gc
unalias gcm
function gc {
while true;do
users=($GIT_USERS)