Added bash config

master
Jef Roosens 2021-04-21 19:27:30 +02:00
parent e74fd3ee28
commit ee83b159ae
Signed by: Jef Roosens
GPG Key ID: B580B976584B5F30
2 changed files with 43 additions and 0 deletions

20
.bash_aliases 100644
View File

@ -0,0 +1,20 @@
# General
alias 'c=clear'
alias 'e=$EDITOR'
alias 'ec=$EDITOR ~/.bashrc'
alias 'sc=source ~/.bashrc'
# Beautiful ls
alias ls='lsd --color=auto'
alias ll='lsd --color=auto --long --almost-all'
# Docker & docker-compose
alias d=docker
alias dc=docker-compose
alias dcu='docker-compose up --detach --build && docker-compose logs --follow'
alias dcb='docker-compose build'
alias dcd='docker-compose down'
alias dcl='docker-compose logs'
# Dotfile management
alias dots="git --git-dir='$HOME/.cfg' --work-tree='$HOME'"

23
.bashrc 100644
View File

@ -0,0 +1,23 @@
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Limit max recursion depth
[[ -z "$FUNCNEST" ]] && export FUNCNEST=100
# =====ENVIRONMENT VARIABLES=====
export EDITOR=nvim
export PATH="$HOME/.local/bin:$HOME/.cargo/bin:$PATH"
# =====PROMPT=====
PS1=" \e[1;33m\w\e[m \n \e[1;36m>\e[m "
# =====EXTERNAL SCRIPTS=====
# My aliases
[[ -f "$HOME/.bash_aliases" ]] && source "$HOME/.bash_aliases"
# Broot function
[[ -f "$HOME/.config/broot/launcher/bash/br" ]] && \
source "$HOME/.config/broot/launcher/bash/br"