dotfiles

My personal dotfiles
git clone git://pcardensab.com/dotfiles
Log | Files | Refs | Submodules | README

.bashrc (915B)


      1 # shellcheck shell=bash
      2 
      3 # If not running interactively, don't do anything
      4 [[ $- != *i* ]] && return
      5 
      6 [[ -n "${DISPLAY}" ]] && shopt -s checkwinsize
      7 
      8 shopt -s histappend histreedit
      9 mkdir -p "${XDG_STATE_HOME:-${HOME}/.local/state}"/bash
     10 HISTFILE="${XDG_STATE_HOME:-${HOME}/.local/state}"/bash/history
     11 HISTCONTROL=ignoreboth
     12 HISTSIZE=200000
     13 HISTFILESIZE=400000
     14 HISTTIMEFORMAT="%D %T "
     15 
     16 # shellcheck disable=SC2034
     17 GPG_TTY=$(tty)
     18 
     19 PS1='\$ '
     20 
     21 
     22 # shellcheck source=.config/shell/alias.sh
     23 source "${XDG_CONFIG_HOME:-${HOME}/.config}"/shell/alias.sh
     24 
     25 # shellcheck source=.config/shell/functions.sh
     26 source "${XDG_CONFIG_HOME:-${HOME}/.config}"/shell/functions.sh
     27 
     28 # shellcheck source=.config/shell/sessions.sh
     29 source "${XDG_CONFIG_HOME:-${HOME}/.config}"/shell/sessions.sh
     30 
     31 ## shellcheck source=.config/shell/hardmode.sh
     32 #source "${XDG_CONFIG_HOME:-${HOME}/.config}"/shell/hardmode.sh
     33 
     34 trap print_goodbye EXIT
     35 print_hello