Added mempigs to aliases

This commit is contained in:
2018-01-26 14:32:02 -05:00
parent b1b0a27192
commit 284cf09418
2 changed files with 9 additions and 1 deletions

View File

@@ -44,7 +44,9 @@ alias openips='nmap -v -sn -n 192.168.0.0/24 -oG - | grep Down'
# webthis - create asimple HTTP server in the current directory serving on port 8000
alias webthis='python -m SimpleHTTPServer 8000'
# For cheating at DCSS
alias crawlsave='if [[ -f crawlsave.tgz ]]; then rm -f crawlsave.tgz; fi && tar cvzf crawlsave.tgz .crawl && crawl-tiles'
alias crawlrestore='rm -rf ~/.crawl && tar xvf ~/crawlsave.tgz -C ~/ && crawl-tiles'
# Memory Pigs (top 10)
alias mempigs='ps aux | awk '\''{print $6/1024 " MB\t\t" $11 " " $12}'\'' | sort -n | tail -10'

6
.zshrc
View File

@@ -92,3 +92,9 @@ source $HOME/.zsh_aliases
# Source zsh functions
#
source $HOME/.zsh_functions
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# set PATH so it includes user's private bin if it exists
PATH="$HOME/bin:$PATH"