Compare commits
4 Commits
69d5463960
...
64b0958236
Author | SHA1 | Date |
---|---|---|
Hektor Misplon | 64b0958236 | |
Hektor Misplon | ae567ecb58 | |
Hektor Misplon | db5ca355b1 | |
Hektor Misplon | 3307434f30 |
15
.bashrc
15
.bashrc
|
@ -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
|
||||||
|
# }}}
|
||||||
|
|
Loading…
Reference in New Issue