My Dotfiles for the Bash Shell
.bash_profile
#!/bin/bash # execute the contents of `.bashrc`, if it exists [[ -f ~/.bashrc ]] && source ~/.bashrc # start the X Window graphical environment [[ -z "$DISPLAY" && "$XDG_VTNR" -eq 1 ]] && exec startx
.bashrc
#!/bin/bash # if not running interactively, exit [[ $- != *i* ]] && return # set the exported variables export EDITOR='vim' export PATH="$HOME/bin:/home/vb/.local/bin:$PATH" export PYTHONIOENCODING='UTF-8' # aliases alias ..='cd ..' alias ls='ls --color=auto' alias la='ls -lah' alias grep='grep --color=auto' alias py='python' alias op='xdg-open' alias reload='source ~/.bashrc' # git aliases alias gs='git status' alias gst='git status' alias ga='git add' alias gds='git diff --staged' alias gcm='git commit -m' alias gpush='git push' alias gundo='git reset HEAD~1' # bash prompt export PS1='\u@\h:\w\$ '