Skip to content

Commit 46b8ca6

Browse files
authored
1/13/2026 (#55)
1 parent 3cb887b commit 46b8ca6

24 files changed

Lines changed: 88 additions & 23 deletions

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
trim_trailing_whitespace = true
6+
insert_final_newline = true
7+
end_of_line = lf
8+
9+
[*.{sh,bash,zsh}]
10+
indent_size = 4

.everythingrc

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -97,21 +97,10 @@ __bashrc_ides
9797

9898
##### Everything Else #####
9999

100-
while read -r FILE; do
101-
# shellcheck disable=SC1090
102-
source "${FILE}"
103-
done <<< "$(find ~/.dotpack -maxdepth 1 -follow -type f -name ".*.sh" | sort --version-sort)"
104-
105-
if [[ "$(basename "${SHELL}")" == "bash" ]]; then
106-
while read -r FILE; do
107-
# shellcheck disable=SC1090
108-
source "${FILE}"
109-
done <<< "$(find ~/.dotpack -maxdepth 1 -follow -type f -name ".*.bash" | sort --version-sort)"
110-
fi
111-
112-
if [[ "$(basename "${SHELL}")" == "zsh" ]]; then
113-
while read -r FILE; do
100+
shell_basename="$(basename "${SHELL}")"
101+
while read -r file; do
102+
if [[ "${file}" == *".sh" || "${file}" == *".${shell_basename}" ]]; then
114103
# shellcheck disable=SC1090
115-
source "${FILE}"
116-
done <<< "$(find ~/.dotpack -maxdepth 1 -follow -type f -name ".*.zsh" | sort --version-sort)"
117-
fi
104+
source "${file}"
105+
fi
106+
done <<< "$(find ~/.dotpack -maxdepth 1 -follow -type f -name ".*" | sort --version-sort)"

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ Files are sourced in the following order:
2727
2. [`~/.profile`](./.profile): Ubuntu default entry point, mostly empty
2828
3. [`~/.bashrc`](./.bashrc): mostly empty
2929
4. [`~/.everythingrc`](./.everythingrc): general functions and aliases
30-
5. `~/.dotpack/.*.sh`: functions and aliases
31-
6. `~/.dotpack/.*.bash`: Bash-specific functions and aliases, including:
30+
5. `~/.dotpack/.*.sh` and `~/.dotpack/.*.bash`: functions and aliases, including:
3231
1. [`~/.dotpack/.90_powerline.bash`](./dotpack/.90_powerline.bash): [Powerline](https://github.com/powerline/powerline) shell theme
3332

3433
**Zsh (Z shell):**
@@ -37,7 +36,6 @@ Files are sourced in the following order:
3736

3837
1. [`~/.zshrc`](./.zshrc): default entry point, mostly empty
3938
2. [`~/.everythingrc`](./.everythingrc): general functions and aliases
40-
3. `~/.dotpack/.*.sh`: functions and aliases
41-
4. `~/.dotpack/.*.zsh`: Zsh-specific functions and aliases, including:
39+
3. `~/.dotpack/.*.sh` and `~/.dotpack/.*.zsh`: functions and aliases, including:
4240
1. [`~/.dotpack/.80_plugins.zsh`](./dotpack/.80_plugins.zsh): [Antidote](https://github.com/mattmc3/antidote) Zsh plugin management
4341
2. [`~/.dotpack/.90_powerlevel10k.zsh`](./dotpack/.90_powerlevel10k.zsh): [Powerlevel10k](https://github.com/romkatv/powerlevel10k) shell theme configuration

dotpack/.10_macos.sh

100755100644
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,18 @@ if [[ ! -x "$(command -v brew)" && -f /opt/homebrew/bin/brew ]]; then
1010
fi
1111

1212
# https://docs.brew.sh/Shell-Completion
13-
: ${HOMEBREW_PREFIX:=$(if type brew &> /dev/null; then brew --prefix; fi)}
13+
if type brew &>/dev/null; then
14+
HOMEBREW_PREFIX="$(brew --prefix)"
15+
if [[ -r "${HOMEBREW_PREFIX}/etc/profile.d/bash_completion.sh" ]]; then
16+
source "${HOMEBREW_PREFIX}/etc/profile.d/bash_completion.sh"
17+
else
18+
for COMPLETION in "${HOMEBREW_PREFIX}/etc/bash_completion.d/"*; do
19+
# shellcheck disable=SC1090
20+
[[ -r "${COMPLETION}" ]] && source "${COMPLETION}"
21+
done
22+
fi
23+
fi
24+
1425

1526
if [[ -x "$(command -v brew)" ]]; then
1627
brew() {

dotpack/.20_golang.sh

100755100644
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
##### https://go.dev/
2+
13
__golang_setup() {
24
# Set path environment variables
35
if command -v go &> /dev/null; then

dotpack/.20_java.sh

100755100644
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
##### https://www.java.com/en/
2+
13
__java_setup() {
24
if [[ "${JAVA_HOME:-}" == "" && -x /usr/libexec/java_home ]]; then
35
JAVA_HOME=$(/usr/libexec/java_home 2> /dev/null)

dotpack/.20_nodejs.sh

100755100644
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
##### https://nodejs.org/en/
2+
13
__nodejs_version_managers() {
24
# nvm
35
NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"

dotpack/.20_python.sh

100755100644
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
##### https://www.python.org/
2+
13
__python_setup() {
24
while read -r DIR; do
35
export PATH="${DIR}:${PATH}"

dotpack/.20_ruby.sh

100755100644
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
##### https://www.ruby-lang.org/en/
2+
13
__ruby_chruby() {
24
# Lazy load chruby
35
if [[ -d "${HOMEBREW_PREFIX}/opt/chruby/share/chruby" ]]; then

dotpack/.30_aws.sh

100755100644
File mode changed.

0 commit comments

Comments
 (0)