- Install Midnight Commander (mc)
- Configure
~/.bashrc
force_color_prompt=yes
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@_:\[\033[01;34m\]\W\[\033[00m\]\$ '
# BASH HISTORY
# don't put duplicate lines or lines starting with space in the history
HISTCONTROL=ignoreboth
HISTSIZE=100000
HISTFILESIZE=2000000
# append to the history file, don't overwrite it after each session
shopt -s histappend
# check the window size after each command and update LINES and COLUMNS
shopt -s checkwinsize
# SET ALIASES
alias mc1='MC_PROFILE_ROOT=~/.mc1 mc'
alias mc2='MC_PROFILE_ROOT=~/.mc2 mc'
alias ss='systemctl suspend -i'
alias ll='ls -alF'
# EXPORT ENVIRONMENT VARIABLES
export SHELL=/bin/bash
export MAVEN_OPTS="-Xms512m -Xmx2048m"
# DOCKER FUNCTIONS
function dstop() {
echo 'Stopping containers...'
docker ps | grep "Up" | awk '{print $1}' | xargs --no-run-if-empty docker stop;
}
function drm() {
echo 'Deleting containers...'
docker ps --filter "status=exited" | grep "ago" | awk '{print $1}' | xargs --no-run-if-empty docker rm;
}
function dclean() {
dstop;
drm;
docker network prune -f
}
function drmi() {
docker rmi $(docker images | grep "^<none>" | awk "{print $3}")
}