Created
November 28, 2018 19:42
-
-
Save arttuladhar/69b63a0013c3679385e8b56d82c55232 to your computer and use it in GitHub Desktop.
Dot Files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH="$PATH:/usr/local/confluent-4.0.0/bin" | |
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8) | |
export NVM_DIR="/Users/art/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | |
## Colorize the ls output ## | |
alias ls='ls -GFph' | |
## Use a long listing format ## | |
alias ll='ls -lha' | |
## Show hidden files ## | |
alias l.='ls -dGp .*' | |
## get rid of command not found ## | |
alias cd..='cd ..' | |
## a quick way to get out of current directory ## | |
alias ..='cd ..' | |
alias ...='cd ../../../' | |
alias ....='cd ../../../../' | |
alias .....='cd ../../../../' | |
alias .4='cd ../../../../' | |
alias .5='cd ../../../../..' | |
## Colorize the grep command output for ease of use (good for log files)## | |
alias grep='grep --color=auto' | |
alias egrep='egrep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias mkdir='mkdir -pv' | |
# confirmation # | |
alias mv='mv -i' | |
alias cp='cp -i' | |
alias ln='ln -i' | |
# Brew shortcuts | |
alias update='brew update' | |
alias upgrade='brew upgrade' | |
alias services='brew services list' | |
alias start='brew services start' | |
alias stop='brew services stop' | |
## pass options to free ## | |
alias meminfo='free -m -l -t' | |
## get top process eating memory | |
alias psmem='ps auxf | sort -nr -k 4' | |
alias psmem10='ps auxf | sort -nr -k 4 | head -10' | |
## get top process eating cpu ## | |
alias pscpu='ps auxf | sort -nr -k 3' | |
alias pscpu10='ps auxf | sort -nr -k 3 | head -10' | |
## Get server cpu info ## | |
alias cpuinfo='lscpu' | |
## older system use /proc/cpuinfo ## | |
##alias cpuinfo='less /proc/cpuinfo' ## | |
## get GPU ram on desktop / laptop## | |
alias gpumeminfo='grep -i --color memory /var/log/Xorg.0.log' | |
## this one saved by butt so many times ## | |
alias wget='wget -c' | |
## set some other defaults ## | |
alias df='df -H' | |
alias du='du -ch' | |
# top is atop, just like vi is vim | |
alias top='atop' | |
# SSH | |
# Git repos | |
#K8s | |
alias kc='kubectl config' | |
alias kgc='kubectl config get-contexts' | |
alias kuc='kubectl config use-context' | |
alias kl='kubectl logs -f' | |
alias klp='kubectl logs -fp' | |
alias kd='kubectl describe' | |
alias kp='kubectl get pods' | |
alias ks='kubectl get services' | |
alias ki='kubectl get ingress' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment