{ pkgs, lib, ... }: { home = { file = { bashrc = { target = ".bashrc"; text = '' eval "$(direnv hook bash)" current_git_branch() { git branch 2>/dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' } shlvl_prompt() { (( SHLVL > 1 )) && printf '(%d)' "$SHLVL" } PS1='$(shlvl_prompt)(\[\033[01;94m\]\u\[\033[00;00m\]@\[\033[01;94m\]\h\[\033[00;00m\]:\[\033[01;34m\]\w\[\033[00m\])\[\033[01;32m\]$(current_git_branch)\[\033[00m\]$ ' nix-update() { set -e ORIG_CWD="$(pwd)" trap 'cd "$ORIG_CWD"' EXIT cd "$HOME/nix-dots" nix flake update nh os switch flatpak update -y } jclone() { git clone https://github.com/johron/$1 } ''; }; }; }; }