27 lines
528 B
Bash
Executable File
27 lines
528 B
Bash
Executable File
git_branch() {
|
|
git branch 2>/dev/null | grep '^*' | colrm 1 2
|
|
}
|
|
|
|
HOST="\[\033[0;37m\]\h\[\033[m\]"
|
|
GIT="\[\033[1;91m\](\$(git_branch))\[\033[m\]"
|
|
DIR="\[\033[1;94m\]\w\[\033[m\]"
|
|
export PS1="${HOST} ${DIR} ${GIT} "
|
|
|
|
# Set vim as default
|
|
export VISUAL=vim
|
|
export EDITOR="$VISUAL"
|
|
|
|
# Dotdrop
|
|
alias dotdrop="~/dotfiles/dotdrop.sh --cfg=~/dotfiles/config.yaml"
|
|
|
|
# Quality of Life
|
|
alias ..="cd .."
|
|
alias ll="ls -l"
|
|
alias la="ls -la"
|
|
alias rm="rm -i"
|
|
|
|
# Source global definitions
|
|
if [ -f /etc/bashrc ]; then
|
|
. /etc/bashrc
|
|
fi
|