Browse Source

bash: macos, linux: fix ps alias

Maxim Likhachev 6 years ago
parent
commit
ffe3229ad1
  1. 2
      etc/shell/bash/aliases
  2. 3
      etc/shell/bash/aliases_linux
  3. 7
      etc/shell/bash/aliases_macos

2
etc/shell/bash/aliases

@ -35,7 +35,6 @@ alias dfc='dfc -t apfs,ext4,fuseblk -w' #noindex @@ -35,7 +35,6 @@ alias dfc='dfc -t apfs,ext4,fuseblk -w' #noindex
alias du='du -hs' #noindex
alias free="free -m" #noindex
alias wget='wget -c -T 5' #noindex
alias ps="ps -aux" #noindex
alias grep='grep -E -i --color=auto' #noindex
alias tree="tree -CAFa" #noindex
alias crontab_i="crontab $CRON" #noindex
@ -45,7 +44,6 @@ alias pstree="pstree -U -h" #noindex @@ -45,7 +44,6 @@ alias pstree="pstree -U -h" #noindex
alias mkdir="mkdir -p -v" #noindex
alias j="jobs -l" #noindex
alias dirs="dirs -v" #noindex
alias ping="pingp --nolegend" #noindex
alias gq="geeqie . &" #noindex
alias emerge="emerge --ask" #noindex
alias rg='rg --no-heading --smart-case --color=auto --colors "match:bg:yellow" --colors "match:fg:blue"' #noindex

3
etc/shell/bash/aliases_linux

@ -8,3 +8,6 @@ alias ls='ls-with-icons -lGhpXv --color=always --group-directories-first' #noind @@ -8,3 +8,6 @@ alias ls='ls-with-icons -lGhpXv --color=always --group-directories-first' #noind
alias lsl='ls-with-icons -L' #noindex
alias lst='ls-with-icons -al --time-style=+%D | grep $(\date +%D)' #noindex
alias ps="ps -aux" #noindex
alias ping="pingp --nolegend" #noindex

7
etc/shell/bash/aliases_macos

@ -3,6 +3,13 @@ alias ls='ls -lGhpv --color=always --group-directories-first' #noindex @@ -3,6 +3,13 @@ alias ls='ls -lGhpv --color=always --group-directories-first' #noindex
alias lsl='ls -L' #noindex
alias lst='ls -al --time-style=+%D | grep $(\date +%D)' #noindex
alias ps="ps aux" #noindex
dropdns() {
DNS_RESPONDER=$(ps | grep [_]mdnsresponder | awk '{ print $2 }')
sudo kill "$DNS_RESPONDER"
}
#- Kubernetes noindex
k_set_ps1() {
set | grep '^PS1=' | grep 'k8s' >&-

Loading…
Cancel
Save