diff options
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 23 |
1 files changed, 9 insertions, 14 deletions
@@ -43,7 +43,7 @@ esac # uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt -#force_color_prompt=yes +force_color_prompt=yes if [ -n "$force_color_prompt" ]; then if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then @@ -85,7 +85,7 @@ if [ -x /usr/bin/dircolors ]; then fi # colored GCC warnings and errors -#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' +export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' # Add an "alert" alias for long running commands. Use like so: # sleep 10; alert @@ -111,23 +111,18 @@ if ! shopt -oq posix; then fi fi +# Set vi mode as the default mode set -o vi +# Set options for some frequently used programs export LS_OPTIONS='-lha --color=auto' -alias ls='ls $LS_OPTIONS' -alias r='ranger' -alias obs='nohup /usr/bin/obsidian &' -alias vrc='vim ~/.vimrc' -alias brc='vim ~/.bashrc && source $_' -alias cts='ssh root@rabiega.xyz' -alias ctg='ssh git@rabiega.xyz' -alias nb='newsboat' -alias nb-add='cat >> ~/.newsboat/urls << EOF' -alias dotfiles="/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME" -alias obsidian="/usr/bin/git --git-dir=$HOME/obsidian --work-tree=$HOME/obsidian" +export MKDIR_OPTIONS='-p' +# Groff shenanigans groffe(){ - groff -e $1.ms -ms -Tpdf > $1.pdf + groff -Kutf8 -Tpdf -mec -ms $1.ms > $1.pdf } +# Bind Esc to CapsLock and vice versa +export MANPAGER="vim -M +MANPAGER - " setxkbmap -option caps:swapescape |