Last active
September 6, 2017 19:18
-
-
Save vanryan/a85dfeb5cc4e0bdc7dbc8812102e41eb to your computer and use it in GitHub Desktop.
Debian .bashrc setup
This file contains hidden or 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
| # A general Debian .bashrc setup | |
| # Author: freenik | |
| # | |
| # | |
| # do 'source ~/.bashrc' in '~/.bash_profile' or '~/.bash_login' to auto load .bashrc | |
| # | |
| # | |
| GREEN="\[$(tput setaf 2)\]" | |
| if [ "$color_prompt" = yes ]; then | |
| PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | |
| else | |
| PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' | |
| fi | |
| if [ "$green_prompt" = yes ]; | |
| PS1="${GREEN}my prompt${RESET}> " | |
| fi | |
| # [alias] | |
| ## aliases for commands | |
| alias ll='ls -alF' | |
| alias la='ls -A' | |
| alias l='ls -CF' | |
| alias grep='grep --color=auto' | |
| alias fgrep='fgrep --color=auto' | |
| alias egrep='egrep --color=auto' | |
| alias ..="cd .." | |
| alias tma="tmux attach -t" | |
| alias tmls="tmux ls" | |
| # [softwares] | |
| ## vagrant | |
| alias vgre="vagrant reload" | |
| alias vgup="vagrant up" | |
| alias vgssh="vagrant ssh" | |
| alias vght="vagrant halt" | |
| alias vgdes="vagrant destroy" | |
| # [git] | |
| git config --global core.excludesfile "~/.gitignore_global" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment