Watch 1 Star 0 Fork 0

jackindata / linux-dev-envShellMIT

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
linux 开发环境配置 spread retract

Clone or download
bash_aliases 1.33 KB
Copy Edit Web IDE Raw Blame History
jackindata authored 2020-01-13 08:21 . Update bash_aliases
# You can copy the following to ~/.bashrc and source it
# OR
# Call this file in ~/.bashrc, like:
#if [ -f /home/jack/git/linux-dev-env/bash_aliases ]; then
# . /home/jack/git/linux-dev-env/bash_aliases
# fi
#
# Reference: https://www.cyberciti.biz/tips/bash-aliases-mac-centos-linux-unix.html
# Base
alias srb="source ~/.bashrc"
alias ax="chmod a+x"
alias dx="chmod a-x"
alias lspwd='ls | sed "s:^:`pwd`/:"'
alias ping='ping -c 3'
alias tmux0='tmux a -t 0'
# cd
alias cd..='cd ..'
alias ..="cd .."
alias ...="cd ..; cd .."
alias jt='cd /home/jack/linux-a-io/hardware-test'
alias jp='cd ~/tl-linux-application/product-test'
alias gotot='cd /mnt/d/tmp'
# vim
alias vi=vim
# make
alias mc="make clean"
# Git
alias gs="git status"
alias gc="git commit ."
alias gcd="git checkout develop"
alias gcm="git checkout master"
alias gpm="git push origin master"
alias gpd="git push origin develop"
alias gfo="git fetch origin"
alias gmm="git merge origin/master"
alias gmd="git merge origin/develop"
alias gtm='foo(){ git archive master --prefix="$1/" | gzip > $1.tar.gz; }; foo '
alias groot="while [ ! -d .git ]; do cd ..; done" # Go to the root of a git repo.
# SSH
alias cp2='foo(){ scp -r $1 root@192.168.$2:~; }; foo '
alias cpfrom='foo(){ scp -r jack@192.168.$1:$2 .; }; foo '
alias ss125='ssh jack@192.168.1.125'
alias ss60='ssh jack@192.168.1.60'

Comment ( 0 )

Sign in for post a comment

Shell
1
https://gitee.com/liaojieliang/linux-dev-env.git
git@gitee.com:liaojieliang/linux-dev-env.git
liaojieliang
linux-dev-env
linux-dev-env
master

Help Search