Add minimal bashrc

This commit is contained in:
CramMK
2020-03-11 13:59:43 +01:00
parent 528cbe2d8d
commit c19f760e8f
2 changed files with 30 additions and 0 deletions

View File

@@ -10,6 +10,9 @@ config:
create: true create: true
dotpath: dotfiles dotpath: dotfiles
dotfiles: dotfiles:
f_bashrc:
src: bash/bashrc
dst: ~/.bashrc
f_zshrc: f_zshrc:
src: zsh/zshrc src: zsh/zshrc
dst: ~/.zshrc dst: ~/.zshrc
@@ -82,6 +85,9 @@ profiles:
- wallpaper - wallpaper
# Packages to be used above # Packages to be used above
bash:
dotfiles:
- f_bashrc
zsh: zsh:
dotfiles: dotfiles:
- f_zshrc - f_zshrc

24
dotfiles/bash/bashrc Executable file
View File

@@ -0,0 +1,24 @@
# Set vim as default
export VISUAL=vim
export EDITOR="$VISUAL"
# Dotdrop
alias dotdrop="~/dotfiles/dotdrop.sh --cfg=~/dotfiles/config.yaml"
# PS1
HOST="\[\033[0;93m\]\h\[\033[m\]"
GIT="\[\033[1;91m\](\$(git_branch))\[\033[m\]"
ICON="\[\033[1;92m\]➜\[\033[m\]"
DIR="\[\033[1;94m\]\w\[\033[m\]"
export PS1="${HOST} ${ICON} ${DIR} "
# 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