-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- dorothy: - fix possible double-loading on posix shells when .profile is configured - use single-quotes when configuring dotfiles, and update find regex to support both - add `setup-util-dash` - add `setup-util-ksh`
- Loading branch information
Showing
13 changed files
with
215 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
# https://repology.org/project/dash-shell/versions | ||
|
||
function setup_util_dash() ( | ||
source "$DOROTHY/sources/bash.bash" | ||
|
||
# improve performance | ||
if is-needle --quiet "$@" && ! is-needle --upgrade "$@" && ! is-needle --uninstall "$@" && command-exists dash; then | ||
return 0 | ||
fi | ||
|
||
# setup | ||
local options=( | ||
--cli='dash' | ||
"$@" | ||
APT='dash' # UBUNTU, not on repology but it exists | ||
APK='dash' # ALPINE | ||
AUR='dash' # ARCH | ||
BREW='dash' | ||
NIX='dash' | ||
) | ||
setup-util "${options[@]}" | ||
) | ||
|
||
# fire if invoked standalone | ||
if test "$0" = "${BASH_SOURCE[0]}"; then | ||
setup_util_dash "$@" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env bash | ||
|
||
# https://repology.org/project/ksh/versions | ||
|
||
function setup_util_ksh() ( | ||
source "$DOROTHY/sources/bash.bash" | ||
|
||
# improve performance | ||
if is-needle --quiet "$@" && ! is-needle --upgrade "$@" && ! is-needle --uninstall "$@" && command-exists ksh; then | ||
return 0 | ||
fi | ||
|
||
# setup | ||
local options=( | ||
--cli='ksh' | ||
"$@" | ||
APT='ksh' # UBUNTU | ||
AUR='ksh' # ARCH | ||
BREW='ksh' | ||
EMERGE='app-shells/ksh' # GENTOO | ||
NIX='ksh' | ||
RPM='ksh' # FEDORA | ||
ZYPPER='ksh' # SUSE | ||
) | ||
setup-util "${options[@]}" | ||
) | ||
|
||
# fire if invoked standalone | ||
if test "$0" = "${BASH_SOURCE[0]}"; then | ||
setup_util_ksh "$@" | ||
fi |
Oops, something went wrong.