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 lo='gnome-screensaver-command -l'
alias x="perl -pe 's/\n/ /' | xsel --clipboard --input"
alias gs='git status'
alias gp='$(git push |& grep "git push")'