dotfile generator
$ Dotfiles
Build your .bashrc or .zshrc
by enabling only what you need.
History
Large history size
10,000 lines in memory, 20,000 on disk
HISTSIZE=10000 / HISTFILESIZE=20000
No duplicates
Skip recording duplicate commands
HISTCONTROL=ignoredups:erasedups
Timestamps
Record time of each command
HISTTIMEFORMAT="%F %T "
Append, don't overwrite
Multiple sessions share history safely
shopt -s histappend (bash)
Prompt (PS1)
Colorful prompt
user@host:dir $ with colors
Show git branch
Append current branch to prompt
Show exit code
Show ✓ or ✗ based on last command
Aliases
ls shortcuts
ll, la, l
Colorized grep
grep --color=auto
Safety aliases
Ask before overwriting with cp/mv/rm
cp -i, mv -i, rm -i
Navigation shortcuts
.. ... .... cd -
Git shortcuts
gs, ga, gc, gp, gl
Network utilities
myip, ports, ping
System info
df, du, free, top
Environment
Default editor
Add ~/bin to PATH
export PATH="$HOME/bin:$PATH"
Add ~/.local/bin to PATH
export PATH="$HOME/.local/bin:$PATH"
Better less
LESS="-R --quit-if-one-screen"
Tools & Managers
nvm (Node)
nvm use / nvm ls
pyenv (Python)
pyenv init / shims
Rust / Cargo
~/.cargo/env
Go
GOPATH / GOBIN
fzf (fuzzy finder)
fzf --bash / fzf init
zsh-autosuggestions
Zsh only
zsh-syntax-highlighting
Zsh only
~/.bashrc