Compare commits

..

4 Commits

3 changed files with 14 additions and 1 deletions

15
.bashrc
View File

@ -1,13 +1,15 @@
# shellcheck shell=bash
# shellcheck disable=SC1091,SC1090
# If not running interactively, don't do anything # If not running interactively, don't do anything
[[ $- != *i* ]] && return [[ $- != *i* ]] && return
source /etc/os-release source /etc/os-release
# Editor & prompt configuration # Editor & prompt configuration
[ -f "$HOME/.bashrc.d/editor" ] && source "$HOME/.bashrc.d/editor" [ -f "$HOME/.bashrc.d/editor" ] && source "$HOME/.bashrc.d/editor"
[ -f "$HOME/.bashrc.d/prompt" ] && source "$HOME/.bashrc.d/prompt" [ -f "$HOME/.bashrc.d/prompt" ] && source "$HOME/.bashrc.d/prompt"
# Aliases {{{
# Load aliases dynamically # Load aliases dynamically
[ -f "$HOME/.bash_aliases/all" ] && source "$HOME/.bash_aliases/all" [ -f "$HOME/.bash_aliases/all" ] && source "$HOME/.bash_aliases/all"
[ -f "$HOME/.bash_aliases/hosts/$HOSTNAME" ] && source "$HOME/.bash_aliases/hosts/$HOSTNAME" [ -f "$HOME/.bash_aliases/hosts/$HOSTNAME" ] && source "$HOME/.bash_aliases/hosts/$HOSTNAME"
@ -16,6 +18,11 @@ source /etc/os-release
# Host-specific and private configurations # Host-specific and private configurations
[ -f "$HOME/.bashrc.d/hosts/$HOSTNAME" ] && source "$HOME/.bashrc.d/hosts/$HOSTNAME" [ -f "$HOME/.bashrc.d/hosts/$HOSTNAME" ] && source "$HOME/.bashrc.d/hosts/$HOSTNAME"
[ -f "$HOME/.bashrc.d/private" ] && source "$HOME/.bashrc.d/private" [ -f "$HOME/.bashrc.d/private" ] && source "$HOME/.bashrc.d/private"
# }}}
# Prompt {{{
[ -f "$HOME/.bashrc.d/prompt" ] && source "$HOME/.bashrc.d/prompt"
# }}}
# Path {{{ # Path {{{
# Add ~/.bin to PATH # Add ~/.bin to PATH
@ -102,3 +109,9 @@ export JUPYTERLAB_DIR=$HOME/.local/share/jupyter/lab
# Zettelkasten {{{ # Zettelkasten {{{
export ZK_PATH="$HOME/.zk" export ZK_PATH="$HOME/.zk"
# SSH Agent {{{
if [[ -z "${SSH_CONNECTION}" ]]; then
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
fi
# }}}