BEIKE blog

備忘録です

メモ ubuntu エイリアス

if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi
if [ -f /etc/bash_completion.d/git-prompt ]; then
        export PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w$(__git_ps1)\[\033[00m\](\t)\$ '
else
    export PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w \$ '
fi

if [ "$0" = "bash" ]; then
  /usr/bin/wmctrl -r :ACTIVE: -b add,above;
fi

## Docker
xhost +local:docker

## Alias set by yourself
alias sb='source ~/.bashrc'
alias vs='vim ~/.bashrc'
alias v='vim'
alias c.='cd ..'
alias c-='cd -'
alias cl='cd ~/Documents/paper/latex/paper'
alias h='htop'
alias lo='gnome-screensaver-command -l'
alias x="perl -pe 's/\n/ /' | xsel --clipboard --input"
alias gm='git commit'
alias gs='git status'
alias gc='git clone'
alias gct='git checkout'
alias gp='$(git push |& grep "git push")'
alias gpu='git pull'
alias cb='catkin build'
alias sd='source devel/setup.bash'
alias rdi='rosdep install -r -y --from-paths --ignore-src ./'
alias rc='roscore'
alias rs='rosrun'
alias rl='roslaunch'
alias rte='rostopic echo'
alias rtl='rostopic list'
alias rtt='rostopic type'
alias rti='rostopic info'
alias rd='roscd'
alias mkc='make && make clean'
####################################