Skip to content

~/.bashrc reference ​

Drop-in snippets for a modern bash setup (WSL2 / Ubuntu).

bash
# Oh My Posh
eval "$(oh-my-posh init bash --config $(oh-my-posh get themes-path)/jandedobbeleer.omp.json)"

# zoxide
eval "$(zoxide init bash)"

# direnv
eval "$(direnv hook bash)"

# atuin
export PATH="$HOME/.atuin/bin:$PATH"
eval "$(atuin init bash)"

# thefuck
eval "$(thefuck --alias)"

# fzf key-bindings
source /usr/share/doc/fzf/examples/key-bindings.bash

# aliases
alias ls='eza --icons --group-directories-first'
alias ll='eza --icons --group-directories-first -la'
alias lt='eza --icons --tree --level=2'
alias cat='bat'
alias lg='lazygit'

Notes ​

  • Adjust the fzf source path if your distro installs key-bindings elsewhere
  • Install each tool before enabling its line (comment out what you don’t have yet)
  • Prefer aliases that wrap modern replacements (eza, bat) so muscle memory stays the same

See also: Bash power tools