alias-map

# mount

# pip conda apt
alias pi='pip install $1'
alias doubanpi='pip install $1 -i https://pypi.doubanio.com/simple/  --trusted-host pypi.doubanio.com'
alias pu='pip uninstall $1'
alias install='sudo apt-get install -y $1'
alias upgrade='sudo apt-get upgrade'
alias update='sudo apt-get update'

# ubuntu
alias c='clear'
alias gpu='nvidia-smi'
alias watchgpu="watch -n 1 nvidia-smi"
alias hg='history | grep $1'
alias ip='ifconfig'
alias howmany='ls -l | grep -v ^l | wc -l'
alias diff="icdiff"
alias 777='sudo chmod 777 $1'
alias network='nm-connection-editor'

# set history format
export HISTTIMEFORMAT="%F %T `whoami` "
alias ls='ls -hl --color=auto'
export HISTIGNORE="pwd:ls:ls -ltr:ls -h"
export HISTSIZE=2000

# bashrc
alias bashrc='vim ~/.bashrc'
alias sourcerc='source ~/.bashrc'

# proxy

# Python & Conda

# Tmux
alias tl='tmux ls'
alias ta='tmux attach-session -d -t'
alias tn='tmux new-session -s'
alias tk='tmux kill-session -t'
alias sv='tmux split-window'
alias sh='tmux split-window -h'

# x11
alias xau='cp /home/iint/.Xauthority /root/'

# SSH

# VScode


# github
#export http_proxy='' #http://127.0.0.1:1090
#export https_proxy='' #http://127.0.0.1:1090


alias di="sudo docker images"
alias de="sudo docker exec -it"
alias dp="sudo docker ps -a"
alias dr="sudo docker rm -f "
alias dri="sudo docker rmi -f "


你可能感兴趣的:(linux)