44 lines
996 B
Bash
Executable File
44 lines
996 B
Bash
Executable File
git_branch() {
|
|
git branch 2>/dev/null | grep '^*' | colrm 1 2
|
|
}
|
|
|
|
CHAR="\[\033[1;93m\]$\[\033[m\]"
|
|
NAME="\[\033[1;32m\]\u\[\033[m\]"
|
|
HOST="\[\033[0;37m\]\h\[\033[m\]"
|
|
GIT="\[\033[1;91m\](\$(git_branch))\[\033[m\]"
|
|
DIR="\[\033[1;94m\]\w\[\033[m\]"
|
|
export PS1="${NAME}@${HOST}:${DIR} ${GIT} ${CHAR} "
|
|
|
|
# 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"
|
|
|
|
# Screenhots
|
|
alias screenshot="import ~/Downloads/Screenshot-$(date '+%Y%m%d-%H%M%S').png"
|
|
|
|
# Common files
|
|
alias bashrc="vim ~/.bashrc"
|
|
alias sourcebashrc="source ~/.bashrc"
|
|
alias sbash="sourcebashrc"
|
|
alias vimrc="vim ~/.vimrc"
|
|
|
|
# Fonts
|
|
alias listfonts="fc-list :scalable=true:spacing=mono: family"
|
|
alias cachefonts="fc-cache -f -v"
|
|
# xterm -fa "Fontname" -fs 11
|
|
# xrdb ~/.Xresources
|
|
|
|
# Source global definitions
|
|
if [ -f /etc/bashrc ]; then
|
|
. /etc/bashrc
|
|
fi
|