From 01067990cce27b7af94506f583de025d28e31c1b Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sun, 5 Sep 2021 12:06:19 -0500 Subject: Change bootstrapping method Now uses a script, ./bootstrap.sh, and a file, ./bootstrap.manifest. --- bootstrap/bash_logout | 6 ------ bootstrap/bash_profile | 4 ---- bootstrap/bashrc | 41 ----------------------------------------- bootstrap/profile | 17 ----------------- 4 files changed, 68 deletions(-) delete mode 100644 bootstrap/bash_logout delete mode 100644 bootstrap/bash_profile delete mode 100644 bootstrap/bashrc delete mode 100644 bootstrap/profile (limited to 'bootstrap') diff --git a/bootstrap/bash_logout b/bootstrap/bash_logout deleted file mode 100644 index d6c9b7a..0000000 --- a/bootstrap/bash_logout +++ /dev/null @@ -1,6 +0,0 @@ -# bash_logout -# vim:ft=sh - -if [[ -r "$XDG_CONFIG_HOME"/bash/logout ]]; then - source "$XDG_CONFIG_HOME"/bash/logout -fi diff --git a/bootstrap/bash_profile b/bootstrap/bash_profile deleted file mode 100644 index 4439ca7..0000000 --- a/bootstrap/bash_profile +++ /dev/null @@ -1,4 +0,0 @@ -# bash_profile - -[[ -f ~/.profile ]] && source ~/.profile -[[ -f ~/.bashrc ]] && source ~/.bashrc diff --git a/bootstrap/bashrc b/bootstrap/bashrc deleted file mode 100644 index 4966e75..0000000 --- a/bootstrap/bashrc +++ /dev/null @@ -1,41 +0,0 @@ -# bashrc - -# If not running interactively, don't do anything -[[ $- != *i* ]] && return - -BASH_SOURCE_FIRST=( - aliases - functions -) - -BASH_SOURCE_LAST=( - blesh -) - -for f in "${BASH_SOURCE_FIRST[@]}"; do - file="${XDG_CONFIG_HOME:-$HOME/.config}/bash/$f.bash" - [[ -r "$file" ]] && source "$file" # || echo >&2 "no '$file' found" -done - -for file in "$XDG_CONFIG_HOME"/bash/*.bash; do - file_base="${file##*/}" - memq "${file_base%.bash}" "${BASH_SOURCE_FIRST[@]}" && { - # echo >&2 "'$file' in BASH_SOURCE_FIRST, skipping" - continue - } - memq "${file_base%.bash}" "${BASH_SOURCE_LAST[@]}" && { - # echo >&2 "'$file' in BASH_SOURCE_LAST, skipping" - continue - } - [[ -r "$file" ]] && { - # echo >&2 "Sourcing '$file'" - source "$file" - } - unset file_base -done - -for f in "${BASH_SOURCE_LAST[@]}"; do - file="${XDG_CONFIG_HOME:-$HOME/.config}/bash/$f.bash" - [[ -r "$file" ]] && source "$file" # || echo >&2 "no '$file' found" - true -done diff --git a/bootstrap/profile b/bootstrap/profile deleted file mode 100644 index 4cb459d..0000000 --- a/bootstrap/profile +++ /dev/null @@ -1,17 +0,0 @@ -# profile -# vim:ft=sh - -# XDG directories -export XDG_CONFIG_HOME="$HOME/etc" -export XDG_CACHE_HOME="$HOME/var/cache" -export XDG_DATA_HOME="$HOME/usr/share" - -export XDG_DATA_DIRS="${XDG_DATA_DIRS:-/usr/local/share:/usr/share}" -export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS:-/etc/xdg}" - -# source files in $XDG_CONFIG_HOME/profile -if [ -d "$XDG_CONFIG_HOME/profile" ]; then - for file in "$XDG_CONFIG_HOME"/profile/*.sh; do - [ -r "$file" ] && . "$file" - done -fi -- cgit 1.4.1-21-gabe81