Bash is the GNU Project's shell. Bash is the Bourne Again SHell. Bash is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh). It is intended to conform to the IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard. It offers functional improvements over sh for both programming and interactive use. In addition, most sh scripts can be run by Bash without modification.
Bash
Bash-it
git clone --depth=1 https://github.com/Bash-it/bash-it.git ~/.bash_it
~/.bash_it/install.sh
nvim ~/.profile
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
startx
fi
nvim ~/.bashrc
#!/usr/bin/env bash
export DEFAULT_USER="d4n1"
export EDITOR="nvim"
export TERM="xterm-256color"
export DEBFULLNAME="Daniel Pimentel"
export DEBEMAIL="d4n1@d4n1.org"
export LANG=C.UTF-8
export LANGUAGE=C.UTF-8
export LC_ALL=C.UTF-8
export QUILT_PATCHES=debian/patches
export E_WL_FORCE=drm
export E_COMP_ENGINE=gl
export XDG_DESKTOP_DIR="$HOME/Desktop"
export XDG_DOWNLOAD_DIR="$HOME/Desktop/download"
alias python="python3"
alias n="nvim"
case $- in
*i*) ;;
*) return ;;
esac
export BASH_IT="/home/d4n1/.bash_it"
export BASH_IT_THEME='clean'
unset MAILCHECK
export IRC_CLIENT='irssi'
export TODO="t"
export SCM_CHECK=true
source "$BASH_IT"/bash_it.sh
neowofetch --color_blocks off
Tips
Kill shell locked
^\\
SSH locked
<ENTER>~.
Removing started file -
rm -- -file
Debuging segmentation fault
strace <PID>
Pausing the shell
^s
Alternating jobs
$<PID>
Re-run commands
!
Cleaning shell
^l
Last argument
!$
Back to previous directory
cd -
Find text in files recursively
grep -r 'text' .
Labels
^ - Control key
<ENTER> - Enter key
<PID> - Proccess ID