#!/bin/bash # # BASH PROFILE # # Load default profile if exists [[ -f "$HOME/.profile" ]] && source "$HOME/.profile" # Load bashrc [[ -f "$HOME/.bashrc" ]] && source "$HOME/.bashrc" # Ensure local directories exist mkdir -p $HOME/.local/{lib,bin} $HOME/.cache # Custom Scripts scripts="$HOME/repositories/scripts" [[ -d "$scripts" ]] && PATH="$PATH:$scripts" # Node/NPM: make global pkg installs use $HOME/.local exists node && export NODE_PATH="$HOME/.local/lib/node_modules:$NODE_PATH" exists npm && export npm_config_prefix="$HOME/.local" export PATH="$HOME/.local/bin:$PATH" # Editor if exists vim; then export EDITOR="vim" export VISUAL="$EDITOR" fi # History export HISTFILE="$HOME/.cache/bash_history" export HISTTIMEFORMAT="%F %T " export HISTCONTROL="ignoredups" export HISTSIZE=5000 export HISTFILESIZE=10000 # Less export LESS="-R" export LESSCHARSET="utf-8" export LESSHISTFILE="$HOME/.cache/less_history" export LESS_TERMCAP_mb=$'\e[01;33m' # begin blinking export LESS_TERMCAP_md=$'\e[01;33m' # begin bold export LESS_TERMCAP_me=$'\e[0m' # end all modes export LESS_TERMCAP_so=$'\e[7m' # start standout mode export LESS_TERMCAP_se=$'\e[0m' # end standout-mode export LESS_TERMCAP_us=$'\e[1;37m' # start underlining export LESS_TERMCAP_ue=$'\e[0m' # end underline export MANPAGER='less -s-M +Gg' export GROFF_NO_SGR=yes # fix for less colours to work # BEMENU if exists bemenu; then fg="#eeeeee" bg="#000000" mg="#111111" hl="#00ffff" export BEMENU_OPTS=" --fn 'Hack Nerd Font' \ --ignorecase \ --no-spacing \ --width-factor 0.4 \ --line-height 20 \ --list 10 \ --border 2 \ --border-radius 5 \ --prompt '>' \ --scroll always \ --single-instance \ --bdr $hl \ --tb $mg --tf $hl \ --cb $fg --cf $fg \ --nb $bg --nf $fg \ --hb $hl --hf $bg \ --fb $mg --ff $fg \ --sb '#00ff00' --sf '#0000ff' \ --ab $bg --af $fg \ --scb $bg --scf $hl " fi # EZA # See 'man eza_colors' for more info if exists eza; then export EZA_COLORS="da=02:gn=02:gu=33:gR=31:uR=31" fi # Browser export BROWSER=firefox # Brightnessctl if exists brightnessctl; then brightnessctl set 20% fi