Skip to content

Commit 1fb7a98

Browse files
committed
add .bash extension to bash config files
1 parent 3c9c17a commit 1fb7a98

14 files changed

+14
-14
lines changed

.chezmoiexternal.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refreshPeriod = '168h'
1010
filter.command = 'sed'
1111
filter.args = ['s/^ bar:$/ footer_bar:/']
1212

13-
['.config/bash/complete_alias']
13+
['.config/bash/complete_alias.bash']
1414
type = 'file'
1515
url = 'https://raw.githubusercontent.com/cykerway/complete-alias/master/complete_alias'
1616
refreshPeriod = '168h'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

dot_config/bash/rc dot_config/bash/rc.bash

+8-8
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ function __path_prepend() {
117117

118118
# my files to source
119119
for file in \
120-
"${XDG_CONFIG_HOME}/bash/functions" \
121-
"${XDG_CONFIG_HOME}/bash/exports" \
122-
"${XDG_CONFIG_HOME}/bash/aliases" \
123-
"${XDG_CONFIG_HOME}/bash/local"; do
120+
"${XDG_CONFIG_HOME}/bash/functions.bash" \
121+
"${XDG_CONFIG_HOME}/bash/exports.bash" \
122+
"${XDG_CONFIG_HOME}/bash/aliases.bash" \
123+
"${XDG_CONFIG_HOME}/bash/local.bash"; do
124124
if __is_readable_file "${file}"; then
125125
source "${file}"
126126
fi
@@ -176,8 +176,8 @@ __executable_exists 'aws_completer' && complete -C 'aws_completer' aws
176176

177177
# add completions for aliases
178178
# sourced here, rather than earlier, to make sure all aliases and bash completions have been sourced
179-
if __is_readable_file "${XDG_CONFIG_HOME}/bash/complete_alias"; then
180-
source "${XDG_CONFIG_HOME}/bash/complete_alias"
179+
if __is_readable_file "${XDG_CONFIG_HOME}/bash/complete_alias.bash"; then
180+
source "${XDG_CONFIG_HOME}/bash/complete_alias.bash"
181181
complete -F _complete_alias "${!BASH_ALIASES[@]}"
182182
fi
183183

@@ -187,8 +187,8 @@ fi
187187
# put this after resetting shell options as starship_preexec() will run before
188188
# every command after this
189189
#__executable_exists 'starship' && eval "$(starship init bash)"
190-
if __is_readable_file "${XDG_CONFIG_HOME}/bash/prompt"; then
191-
source "${XDG_CONFIG_HOME}/bash/prompt"
190+
if __is_readable_file "${XDG_CONFIG_HOME}/bash/prompt.bash"; then
191+
source "${XDG_CONFIG_HOME}/bash/prompt.bash"
192192
fi
193193

194194
# clean up vars & functions
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
local_{{ .personal_or_work }}.bash
2+
3+

dot_config/bash/symlink_local.tmpl

-3
This file was deleted.

symlink_dot_bash_profile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.config/bash/profile
1+
.config/bash/profile.bash

symlink_dot_bashrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.config/bash/rc
1+
.config/bash/rc.bash

0 commit comments

Comments
 (0)