diff options
author | filip <“filip.rabiega@gmail.com”> | 2025-07-02 15:47:34 +0200 |
---|---|---|
committer | filip <“filip.rabiega@gmail.com”> | 2025-07-02 15:47:34 +0200 |
commit | 94d9b788ddd93ffe45153762bb0b224a98ed4027 (patch) | |
tree | 15150a0ab5b9fe3f6985c6fdc89504381e88b8c9 /.bashrc | |
parent | 68372b162054b900163a1e65d13f36909cf38aec (diff) | |
download | dotfiles-94d9b788ddd93ffe45153762bb0b224a98ed4027.tar.gz dotfiles-94d9b788ddd93ffe45153762bb0b224a98ed4027.tar.bz2 dotfiles-94d9b788ddd93ffe45153762bb0b224a98ed4027.zip |
words are hard
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 37 |
1 files changed, 25 insertions, 12 deletions
@@ -56,11 +56,6 @@ if [ -n "$force_color_prompt" ]; then fi fi -if [ "$color_prompt" = yes ]; then - PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' -else - PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' -fi unset color_prompt force_color_prompt # If this is an xterm set the title to user@host:dir @@ -114,17 +109,35 @@ fi # Set vi mode as the default mode set -o vi +# Groff shenanigans +groffe(){ + groff -Kutf8 -Tpdf -mec -ms $1.ms > $1.pdf +} + +# Opam configuration +test -r /home/filipek/.opam/opam-init/init.sh && . /home/filipek/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true + # Set options for some frequently used programs export LS_OPTIONS='-lha --color=auto' export TAR_EXTRACT='-xvzf' export TAR_ARCHIVE='-cvzf' export MKDIR_OPTIONS='-p' +export RSYNC_OPTIONS='-rtvzP' +export MANPAGER="vim -M +MANPAGER - " -# Groff shenanigans -groffe(){ - groff -Kutf8 -Tpdf -mec -ms $1.ms > $1.pdf -} +export PATH=$HOME/.scripts:$HOME/.cargo/bin:$PATH +export EDITOR="vim" +export BROWSER="librewolf" -# Bind Esc to CapsLock and vice versa -export MANPAGER="vim -M +MANPAGER - " -setxkbmap -option caps:swapescape +# GPG Config +GPG_TTY=$(tty) +export GPG_TTY + +# Prompt colors +export PS1="\[$(tput setaf 2)\]\u\[$(tput setaf 35)\]@\[$(tput setaf 10)\]\h \[$(tput setaf 33)\]\w \[$(tput sgr0)\]$ " + +# Run these scripts at login +bash remaps + +source auxless +source add-alias |