diff options
| author | José Juan Loeza Sierra <jj@xz6ze.com> | 2025-07-30 22:57:19 -0700 |
|---|---|---|
| committer | José Juan Loeza Sierra <jj@xz6ze.com> | 2025-07-30 22:57:19 -0700 |
| commit | 5205536eaa19393969caf1a9e375cd50d7bd3443 (patch) | |
| tree | 2650053d213abc6a6f9ba658fcfc5d677f7cce4b /dot-bashrc | |
| parent | 1361506c7049e756404ce84f5b9cb21c2fb80c48 (diff) | |
add bashrc
includes a bashrc for the development container
Diffstat (limited to 'dot-bashrc')
| -rw-r--r-- | dot-bashrc | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/dot-bashrc b/dot-bashrc new file mode 100644 index 0000000..9a8b02b --- /dev/null +++ b/dot-bashrc @@ -0,0 +1,62 @@ +# +# ~/.bashrc +# + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +alias ls='ls --color=auto' +alias grep='grep --color=auto' +PS1='[\u@\h \W]\$ ' + +export EDITOR=nvim + +# include home binaries +export PATH=$PATH:~/.bin + +# use trash instead of rm +alias rm='echo "use trash instead"; false' +alias tm='trash-put' + +# lock desktop +alias lock='swaylock -f -c 000000' + +# bluetooth +alias bt='bluetui' + +# kitten ssh +alias kssh='kitten ssh' + +# SSH Keychain +eval $(keychain --eval --quiet id_ed25519) + +# rclone +## logs +export RCLONE_COMBINED=~/.logs/rclone/combined.log +export RCLONE_DIFFER=~/.logs/rclone/differ.log +export RCLONE_ERROR=~/.logs/rclone/error.log +export RCLONE_MATCH=~/.logs/rclone/match.log +export RCLONE_MISSING_ON_DST=~/.logs/rclone/missing-on-dst.log +export RCLONE_MISSING_ON_SRC=~/.logs/rclone/missing-on-src.log +## settings +## specific to aws-like (Hetzner) +## see https://rclone.org/s3/#reducing-costs +## and https://rclone.org/s3/#increasing-performance +export RCLONE_FAST_LIST=true +export RCLONE_CHECKSUM=true +export RCLONE_TRANSFERS=200 +export RCLONE_CHECKERS=200 + +# list packages installed explicitly, sorted by date +alias pacbd="cd && pacman -Qqe > pkglist.txt && expac --timefmt='%Y-%m-%d %T' '%l\t%n' | sort | sed 's/^.*\s//' - | rg -f pkglist.txt -x" + +# direnv +eval "$(direnv hook bash)" + +# starship +eval "$(starship init bash)" + +# include dev bashrc when in `dev` distrobox +if [ "$CONTAINER_ID" = "dev" ]; then + source ~/.bashrc.d/dev.bashrc +fi |
