detached 2b21852

fix(shell): remove non-existent functions file from shell configuration

- Remove functions source line from install/configs/shell/rc
- Remove ShellFunctionsTemplate constant from config
- Remove functions from postinstall templates map
- Fixes error: /home/user/.local/share/archup/default/bash/functions: No such file or directory
commit
2b2185232625aee489043a87993d9a25f41a6780
author
bnema · · 2025-10-26 21:32 UTC
parent
3b40e07
signature
unsigned
3 files · +14 -10
M install/configs/shell/rc +0 -1
@@ -2,4 +2,3 @@ source ~/.local/share/archup/default/bash/shell
22 source ~/.local/share/archup/default/bash/init
33 source ~/.local/share/archup/default/bash/aliases
44 source ~/.local/share/archup/default/bash/envs
5-source ~/.local/share/archup/default/bash/functions
@@ -2,4 +2,3 @@ source ~/.local/share/archup/default/bash/shell
2 source ~/.local/share/archup/default/bash/init2 source ~/.local/share/archup/default/bash/init
3 source ~/.local/share/archup/default/bash/aliases3 source ~/.local/share/archup/default/bash/aliases
4 source ~/.local/share/archup/default/bash/envs4 source ~/.local/share/archup/default/bash/envs
5-source ~/.local/share/archup/default/bash/functions
M internal/config/config.go +14 -8
@@ -19,13 +19,12 @@ const (
1919 LimineConfigTemplate = "configs/limine.conf.template"
2020 ChaoticConfigFile = "configs/chaotic-aur.conf"
2121 StarshipConfigTemplate = "configs/shell/starship.toml"
22- ShellConfigTemplate = "configs/shell/shell"
23- ShellInitTemplate = "configs/shell/init"
24- ShellAliasesTemplate = "configs/shell/aliases"
25- ShellEnvsTemplate = "configs/shell/envs"
26- ShellFunctionsTemplate = "configs/shell/functions"
27- ShellRcTemplate = "configs/shell/rc"
28- BashrcTemplate = "configs/shell/bashrc"
22+ ShellConfigTemplate = "configs/shell/shell"
23+ ShellInitTemplate = "configs/shell/init"
24+ ShellAliasesTemplate = "configs/shell/aliases"
25+ ShellEnvsTemplate = "configs/shell/envs"
26+ ShellRcTemplate = "configs/shell/rc"
27+ BashrcTemplate = "configs/shell/bashrc"
2928 )
3029
3130 // Encryption types
@@ -239,8 +238,15 @@ type Config struct {
239238 func NewConfig(version string) *Config {
240239 // Determine which branch to use based on version
241240 branch := "main"
242- if version == "dev" || version == "" {
241+ switch {
242+ case version == "dev" || version == "":
243243 branch = "dev"
244+ case strings.Contains(version, "-dev"):
245+ branch = "dev"
246+ case strings.Contains(version, "-next"):
247+ branch = "dev"
248+ default:
249+ branch = "main"
244250 }
245251
246252 return &Config{
@@ -19,13 +19,12 @@ const (
19 LimineConfigTemplate = "configs/limine.conf.template"19 LimineConfigTemplate = "configs/limine.conf.template"
20 ChaoticConfigFile = "configs/chaotic-aur.conf"20 ChaoticConfigFile = "configs/chaotic-aur.conf"
21 StarshipConfigTemplate = "configs/shell/starship.toml"21 StarshipConfigTemplate = "configs/shell/starship.toml"
22- ShellConfigTemplate = "configs/shell/shell"22+ ShellConfigTemplate = "configs/shell/shell"
23- ShellInitTemplate = "configs/shell/init"23+ ShellInitTemplate = "configs/shell/init"
24- ShellAliasesTemplate = "configs/shell/aliases"24+ ShellAliasesTemplate = "configs/shell/aliases"
25- ShellEnvsTemplate = "configs/shell/envs"25+ ShellEnvsTemplate = "configs/shell/envs"
26- ShellFunctionsTemplate = "configs/shell/functions"26+ ShellRcTemplate = "configs/shell/rc"
27- ShellRcTemplate = "configs/shell/rc"27+ BashrcTemplate = "configs/shell/bashrc"
28- BashrcTemplate = "configs/shell/bashrc"
29 )28 )
30 29
31 // Encryption types30 // Encryption types
@@ -239,8 +238,15 @@ type Config struct {
239 func NewConfig(version string) *Config {238 func NewConfig(version string) *Config {
240 // Determine which branch to use based on version239 // Determine which branch to use based on version
241 branch := "main"240 branch := "main"
242- if version == "dev" || version == "" {241+ switch {
242+ case version == "dev" || version == "":
243 branch = "dev"243 branch = "dev"
244+ case strings.Contains(version, "-dev"):
245+ branch = "dev"
246+ case strings.Contains(version, "-next"):
247+ branch = "dev"
248+ default:
249+ branch = "main"
244 }250 }
245 251
246 return &Config{252 return &Config{
M internal/phases/postinstall.go +0 -1
@@ -486,7 +486,6 @@ func (p *PostInstallPhase) copyShellTemplates(archupDefault, archupDefaultBash s
486486 config.ShellInitTemplate: filepath.Join(archupDefaultBash, "init"),
487487 config.ShellAliasesTemplate: filepath.Join(archupDefaultBash, "aliases"),
488488 config.ShellEnvsTemplate: filepath.Join(archupDefaultBash, "envs"),
489- config.ShellFunctionsTemplate: filepath.Join(archupDefaultBash, "functions"),
490489 config.ShellRcTemplate: filepath.Join(archupDefaultBash, "rc"),
491490 config.StarshipConfigTemplate: filepath.Join(archupDefault, "starship.toml"),
492491 }
@@ -486,7 +486,6 @@ func (p *PostInstallPhase) copyShellTemplates(archupDefault, archupDefaultBash s
486 config.ShellInitTemplate: filepath.Join(archupDefaultBash, "init"),486 config.ShellInitTemplate: filepath.Join(archupDefaultBash, "init"),
487 config.ShellAliasesTemplate: filepath.Join(archupDefaultBash, "aliases"),487 config.ShellAliasesTemplate: filepath.Join(archupDefaultBash, "aliases"),
488 config.ShellEnvsTemplate: filepath.Join(archupDefaultBash, "envs"),488 config.ShellEnvsTemplate: filepath.Join(archupDefaultBash, "envs"),
489- config.ShellFunctionsTemplate: filepath.Join(archupDefaultBash, "functions"),
490 config.ShellRcTemplate: filepath.Join(archupDefaultBash, "rc"),489 config.ShellRcTemplate: filepath.Join(archupDefaultBash, "rc"),
491 config.StarshipConfigTemplate: filepath.Join(archupDefault, "starship.toml"),490 config.StarshipConfigTemplate: filepath.Join(archupDefault, "starship.toml"),
492 }491 }

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 0

    ↑↓ moveenter openesc close