Skip to content

Commit

Permalink
ensure root’s $HOME is expanded to /
Browse files Browse the repository at this point in the history
https://mywiki.wooledge.org/BashPitfalls?rev=565#line-1-81

Signed-off-by: Lucas Larson <LucasLarson@riseup.net>
  • Loading branch information
LucasLarson committed Apr 10, 2023
1 parent faf22db commit 98cf52d
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 67 deletions.
4 changes: 3 additions & 1 deletion .bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ export LC_ALL="${LC_ALL:=en_US.UTF-8}"

## Bash completions
{
# shellcheck disable=1090
. '/etc/profile.d/bash_completion.sh'
. '/usr/local/etc/profile.d/bash_completion.sh'
. '/opt/local/etc/profile.d/bash_completion.sh'
} 2>/dev/null

## Bashhub
. "${HOME-}"'/.bashhub/bashhub.sh' 2>/dev/null
# shellcheck disable=1091
. "${HOME%/}"'/.bashhub/bashhub.sh' 2>/dev/null
2 changes: 1 addition & 1 deletion .kshrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/env sh
export HISTFILE="${HOME-}"'/.ksh_history'
export HISTFILE="${HOME%/}"'/.ksh_history'
40 changes: 20 additions & 20 deletions .zshenv
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
. /usr/lib/os-release 2>/dev/null

## Dotfiles and templates
command mkdir -p -- "${HOME-}"'/Library/CloudStorage/Dropbox/dotfiles' &&
export DOTFILES="${HOME-}"'/Library/CloudStorage/Dropbox/dotfiles' &&
command mkdir -p -- "${HOME%/}"'/Library/CloudStorage/Dropbox/dotfiles' &&
export DOTFILES="${HOME%/}"'/Library/CloudStorage/Dropbox/dotfiles' &&
command mkdir -p -- "${DOTFILES-}"'/custom' &&
export ZSH_CUSTOM="${DOTFILES-}"'/custom' &&
export custom="${DOTFILES-}"'/custom' &&
Expand All @@ -17,21 +17,21 @@ command mkdir -p -- "${HOME-}"'/Library/CloudStorage/Dropbox/dotfiles' &&

## XDG
# https://specifications.freedesktop.org/basedir-spec/0.7/ar01s03.html
command mkdir -p -- "${HOME-}"'/.local/share' &&
export XDG_DATA_HOME="${HOME-}"'/.local/share'
command mkdir -p -- "${HOME-}"'/.config' &&
export XDG_CONFIG_HOME="${HOME-}"'/.config'
command mkdir -p -- "${HOME-}"'/.local/state' &&
export XDG_STATE_HOME="${HOME-}"'/.local/state'
command mkdir -p -- "${HOME%/}"'/.local/share' &&
export XDG_DATA_HOME="${HOME%/}"'/.local/share'
command mkdir -p -- "${HOME%/}"'/.config' &&
export XDG_CONFIG_HOME="${HOME%/}"'/.config'
command mkdir -p -- "${HOME%/}"'/.local/state' &&
export XDG_STATE_HOME="${HOME%/}"'/.local/state'
command mkdir -p -- '/usr/local/share' &&
export XDG_DATA_DIRS="${XDG_DATA_DIRS:+${XDG_DATA_DIRS-}:}"'/usr/local/share'
command mkdir -p -- '/usr/share' &&
# this trailing slash is prescribed
export XDG_DATA_DIRS="${XDG_DATA_DIRS:+${XDG_DATA_DIRS-}:}"'/usr/share/'
command mkdir -p -- '/etc/xdg' &&
export XDG_CONFIG_DIRS='/etc/xdg'
command mkdir -p -- "${HOME-}"'/.cache' &&
export XDG_CACHE_HOME="${HOME-}"'/.cache' &&
command mkdir -p -- "${HOME%/}"'/.cache' &&
export XDG_CACHE_HOME="${HOME%/}"'/.cache' &&
command touch -- "${XDG_CACHE_HOME-}"'/p10k-instant-prompt-'"${USER-}"'.zsh'

# `XDG_RUNTIME_DIR` has no default and requires `700` permissions
Expand All @@ -44,7 +44,7 @@ command mkdir -p -- "${TMPDIR:-/tmp}"'/xdg_runtime_dir-'"${USER-}" &&
export BH_FILTER="${BH_FILTER:="(^ |^google)"}"

## $CDPATH
export CDPATH="${CDPATH:+${CDPATH-}:}${HOME-}"
export CDPATH="${CDPATH:+${CDPATH-}:}${HOME%/}"

## GitHub
export GITHUB_ORG="${USER-}"
Expand All @@ -54,11 +54,11 @@ export GITHUB_ORG="${USER-}"
export GITLAB_USERNAME="${USER-}"

## Go
export GOPATH="${HOME-}"'/.go'
export GOPATH="${HOME%/}"'/.go'

## iCloud
test -d "${HOME-}"'/Library/Mobile Documents' &&
export ICLOUD="${HOME-}"'/Library/Mobile Documents'
test -d "${HOME%/}"'/Library/Mobile Documents' &&
export ICLOUD="${HOME%/}"'/Library/Mobile Documents'

## Input Field Separators
# https://unix.stackexchange.com/a/220658
Expand All @@ -80,14 +80,14 @@ export POSIXLY_CORRECT="${POSIXLY_CORRECT:-1}"

## Rust
# https://github.com/mkrasnitski/git-power-rs/tree/2fc2906#installing
export CARGO_HOME="${HOME-}"'/.cargo'
export CARGO_HOME="${HOME%/}"'/.cargo'

## SSH, GPG
for directory in \
"${DOTFILES-}"'/.gnupg' \
"${DOTFILES-}"'/.ssh' \
"${HOME-}"'/.gnupg' \
"${HOME-}"'/.ssh'; do
"${HOME%/}"'/.gnupg' \
"${HOME%/}"'/.ssh'; do
test -d "${directory-}" &&
command find -- "${directory-}" \
-type f \
Expand All @@ -106,6 +106,6 @@ export GPG_TTY="${TTY-}"

## private
# shellcheck disable=SC1091
command touch -- "${HOME-}"'/.env' &&
command chmod -- 400 "${HOME-}"'/.env' &&
. "${HOME-}"'/.env'
command touch -- "${HOME%/}"'/.env' &&
command chmod -- 400 "${HOME%/}"'/.env' &&
. "${HOME%/}"'/.env'
30 changes: 15 additions & 15 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Powerlevel10k
# shellcheck disable=SC1090
. "${XDG_CACHE_HOME:-${HOME-}/.cache}"'/p10k-instant-prompt-'"${USER-}"'.zsh' 2>/dev/null
. "${XDG_CACHE_HOME:-${HOME%/}/.cache}"'/p10k-instant-prompt-'"${USER-}"'.zsh' 2>/dev/null
# shellcheck disable=SC1091
. "${DOTFILES-}"'/custom/themes/powerlevel10k/powerlevel10k.zsh-theme' 2>/dev/null &&
export ZSH_THEME='powerlevel10k/powerlevel10k'
Expand All @@ -13,22 +13,22 @@ test -d '/usr/local/sbin' &&
PATH='/usr/local/sbin'"${PATH:+:${PATH-}}"
test -d '/usr/local/bin' &&
PATH='/usr/local/bin'"${PATH:+:${PATH-}}"
test -d "${HOME-}"'/bin' &&
PATH="${HOME-}"'/bin'"${PATH:+:${PATH-}}"
test -d "${HOME-}"'/.local/bin' &&
PATH="${HOME-}"'/.local/bin'"${PATH:+:${PATH-}}"
test -d "${HOME%/}"'/bin' &&
PATH="${HOME%/}"'/bin'"${PATH:+:${PATH-}}"
test -d "${HOME%/}"'/.local/bin' &&
PATH="${HOME%/}"'/.local/bin'"${PATH:+:${PATH-}}"

## Plugin manager
test -d "${HOME-}"'/.oh-my-zsh' &&
export ZSH="${HOME-}"'/.oh-my-zsh'
test -d "${HOME%/}"'/.oh-my-zsh' &&
export ZSH="${HOME%/}"'/.oh-my-zsh'

## History size
SAVEHIST="$(printf -- '2 ^ 32 - 1\n' | command bc)"
HISTSIZE="$((SAVEHIST / 2))"
export SAVEHIST HISTSIZE

## zsh compdump
export ZSH_COMPDUMP="${HOME-}"'/.zcompdump'
export ZSH_COMPDUMP="${HOME%/}"'/.zcompdump'

## Plugins
PLUGINS='gunstage:samefile:git-default-branch:zsh-abbr:zsh-diff-so-fancy:zsh-autosuggestions'"${PLUGINS:+:${PLUGINS-}}"
Expand Down Expand Up @@ -164,14 +164,14 @@ if command -v -- brew >/dev/null 2>&1; then
fi

## Rust
test -d "${HOME-}"'/.cargo/bin' &&
PATH="${HOME-}"'/.cargo/bin'"${PATH:+:${PATH-}}"
test -d "${HOME%/}"'/.cargo/bin' &&
PATH="${HOME%/}"'/.cargo/bin'"${PATH:+:${PATH-}}"

## Bashhub
. "${HOME-}"'/.bashhub/bashhub.'"${SHELL##*[-./]}" 2>/dev/null
. "${HOME%/}"'/.bashhub/bashhub.'"${SHELL##*[-./]}" 2>/dev/null

## npm
NPM_PACKAGES="${HOME-}"'/.npm-packages'
NPM_PACKAGES="${HOME%/}"'/.npm-packages'
test -d "${NPM_PACKAGES-}"'/bin' &&
PATH="${PATH:+${PATH-}:}${NPM_PACKAGES-}"'/bin'
test -d "${NPM_PACKAGES-}"'/share/man' &&
Expand Down Expand Up @@ -221,8 +221,8 @@ test -n "${GOPATH-}" &&
PATH="${GOPATH-}"'/bin'"${PATH:+:${PATH-}}"

## rbenv
test -d "${HOME-}"'/.rbenv/shims' &&
PATH="${HOME-}"'/.rbenv/shims'"${PATH:+:${PATH-}}"
test -d "${HOME%/}"'/.rbenv/shims' &&
PATH="${HOME%/}"'/.rbenv/shims'"${PATH:+:${PATH-}}"

## PATHs
# prevent duplicate entries
Expand All @@ -234,4 +234,4 @@ test -n "${ZSH-}" &&
MANPATH manpath

## Powerlevel10k
. "${HOME-}"'/.p10k.zsh' 2>/dev/null
. "${HOME%/}"'/.p10k.zsh' 2>/dev/null
20 changes: 11 additions & 9 deletions CodeSnippets.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ to add dotfiles of the variety [Mackup](https://github.com/lra/mackup) might’v

```shell
# make `~/Desktop/.example.txt` part of the dotfiles repository
add="${HOME-}"'/Desktop/.example.txt'
add="${HOME%/}"'/Desktop/.example.txt'
command mv -- "${add-}" "${DOTFILES-}"'/directory_where_it_should_go_if_any/'"${add##*/}"
command ln -s -- "${DOTFILES-}"'/directory_where_it_should_go_if_any/'"${add##*/}" "${HOME-}"'/directory_where_it_should_go_if_any/'"${add##*/}"
command ln -s -- "${DOTFILES-}"'/directory_where_it_should_go_if_any/'"${add##*/}" "${HOME%/}"'/directory_where_it_should_go_if_any/'"${add##*/}"
unset -v -- add
```

Expand Down Expand Up @@ -550,13 +550,15 @@ it. Restart restart to get a profile of startup time usage.&nbsp;[via](https://
### Xcode, JetBrains, Carthage, Homebrew

```shell
trash_developer='1'; command sleep 1; set -o xtrace; trash_date="$(command date -u -- '+%Y%m%d')"_"$(command awk -- 'BEGIN {srand(); print srand()}')" \
command mkdir -p -- "${HOME-}"'/Library/Developer/Xcode/DerivedData' && command mv -- "${HOME-}"'/Library/Developer/Xcode/DerivedData' "${HOME-}"'/.Trash/Xcode-'"${trash_date-}" \
command mkdir -p -- "${HOME-}"'/Library/Developer/Xcode/UserData/IB Support' && command mv -- "${HOME-}"'/Library/Developer/Xcode/UserData/IB Support' "${HOME-}"'/.Trash/Xcode⁄UserData⁄IB Support-'"${trash_date-}" \
command mkdir -p -- "${HOME-}"'/Library/Caches/JetBrains' && command mv -- "${HOME-}"'/Library/Caches/JetBrains' "${HOME-}"'/.Trash/JetBrains-'"${trash_date-}" \
command mkdir -p -- "${HOME-}"'/Library/Caches/org.carthage.CarthageKit/DerivedData' && command mv -- "${HOME-}"'/Library/Caches/org.carthage.CarthageKit/DerivedData' "${HOME-}"'/.Trash/Carthage-'"${trash_date-}" \
command mkdir -p -- "${HOME-}"'/Library/Caches/Homebrew/downloads' && command mv -- "${HOME-}"'/Library/Caches/Homebrew/downloads' "${HOME-}"'/.Trash/Homebrew-'"${trash_date-}" \
command -v -- brew >/dev/null 2>&1 && { command brew autoremove --verbose; command brew cleanup --prune=all --verbose; } { set +o xtrace; unset -v -- trash_developer; unset -v -- trash_date; } 2>/dev/null; printf '\n\n\360\237%s\232\256 data successfully trashed\n' "${trash_developer-}"
trash_developer='1'; command sleep 1; set -o xtrace; trash_date="$(command date -u -- '+%Y%m%d%H%M%S')" \
command mkdir -p -- "${HOME%/}"'/Library/Developer/Xcode/DerivedData' && command mv -- "${HOME%/}"'/Library/Developer/Xcode/DerivedData' "${HOME%/}"'/.Trash/Xcode-'"${trash_date-}" \
command mkdir -p -- "${HOME%/}"'/Library/Developer/Xcode/UserData/IB Support' && command mv -- "${HOME%/}"'/Library/Developer/Xcode/UserData/IB Support' "${HOME%/}"'/.Trash/Xcode⁄UserData⁄IB Support-'"${trash_date-}" \
command mkdir -p -- "${HOME%/}"'/Library/Caches/JetBrains' && command mv -- "${HOME%/}"'/Library/Caches/JetBrains' "${HOME%/}"'/.Trash/JetBrains-'"${trash_date-}" \
command mkdir -p -- "${HOME%/}"'/Library/Caches/org.carthage.CarthageKit/DerivedData' && command mv -- "${HOME%/}"'/Library/Caches/org.carthage.CarthageKit/DerivedData' "${HOME%/}"'/.Trash/Carthage-'"${trash_date-}" \
command mkdir -p -- "${HOME%/}"'/Library/Caches/Homebrew/downloads' && command mv -- "${HOME%/}"'/Library/Caches/Homebrew/downloads' "${HOME%/}"'/.Trash/Homebrew-'"${trash_date-}" \
command -v -- brew >/dev/null 2>&1 && { command brew autoremove --verbose; command brew cleanup --prune=all --verbose; }; \
printf -- 'checking for Xcode installation...\n' 2>/dev/null; if command -v -- xcrun >/dev/null 2>&1; then printf -- 'removing unavailable device simulators...\n' 2>/dev/null; command xcrun simctl delete unavailable; else printf -- 'no Xcode installation detected.\n\n' 2>/dev/null; fi; \
{ set +o xtrace; unset -v -- trash_developer; unset -v -- trash_date; } 2>/dev/null; printf -- '\n\n\360\237%s\232\256 data successfully trashed\n' "${trash_developer-}"
```

## delete
Expand Down
36 changes: 18 additions & 18 deletions custom/aliases.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
# https://stackoverflow.com/a/1371283
# https://github.com/mathiasbynens/dotfiles/commit/cb8843b
alias ,='. "${HOME-}"/."${SHELL##*[-./]}"rc && exec -l -- "${SHELL##*[-./]}"'
alias ,='. "${HOME%/}"/."${SHELL##*[-./]}"rc && exec -l -- "${SHELL##*[-./]}"'
aliases() {
command "${EDITOR-}" -- "${DOTFILES-}/custom/aliases.${SHELL##*[-./]}" &&
command -v -- shfmt >/dev/null 2>&1 &&
Expand Down Expand Up @@ -97,7 +97,7 @@ brewfile() {
command sed \
-e 's/^[[:digit:]]//' \
-e 's/\([^#]*\)\(#.*\)/\2\n\1/'
} >"${HOME-}"'/.Brewfile'
} >"${HOME%/}"'/.Brewfile'
}

# prefer `bat` without line numbers for easier copying
Expand Down Expand Up @@ -289,12 +289,12 @@ cleanup() {
# refuse to run from `/`
test "$(command pwd -P)" = '/' ||
# or from `$HOME`
test "$(command pwd -P)" = "${HOME-}" ||
test "$(command pwd -P)" = "${HOME%/}" ||
# or from any titlecase-named directory just below `$HOME`
# such the closed set of macOS standard directories:
# `Applications`, `Desktop`, `Documents`, `Downloads`, `Library`, `Movies`, `Music`, `Pictures`, `Public`, and `Sites`
# https://web.archive.org/web/0id_/developer.apple.com/library/mac/documentation/FileManagement/Conceptual/FileSystemProgrammingGUide/FileSystemOverview/FileSystemOverview.html#//apple_ref/doc/uid/TP40010672-CH2-SW9
test "$(command pwd -P | command xargs -0 dirname)" = "${HOME-}" &&
test "$(command pwd -P | command xargs -0 dirname)" = "${HOME%/}" &&
case "$(command pwd -P | command tr -d '[:space:]' | command xargs basename -- | command cut -c 1)" in
[A-Z])
printf -- '\n\n'
Expand Down Expand Up @@ -327,14 +327,14 @@ cleanup() {
test ! "${ZSH_COMPDUMP-}" != "${ZSH_COMPDUMP#*'zcompdump-'}" &&
test ! "${ZSH_COMPDUMP-}" != "${ZSH_COMPDUMP#*'zcompdump.'}"; then
while test -n "$(
command find -- "${HOME-}" \
command find -- "${HOME%/}" \
-maxdepth 1 \
-type f \
! -name "$(printf -- "*\n*")" \
! -name '.zcompdump' \
-name '.zcompdump*'
)"; do
command find -- "${HOME-}" \
command find -- "${HOME%/}" \
-maxdepth 1 \
-type f \
! -name "$(printf -- "*\n*")" \
Expand Down Expand Up @@ -400,7 +400,7 @@ command rm -- "{}"' ';'
-path '*/.git/*' \
-name 'config' \
-exec sed -i -e 's/\t/ /g' {} ';'
command sed -i -e 's/\t/ /g' "${HOME-}"'/.gitconfig'
command sed -i -e 's/\t/ /g' "${HOME%/}"'/.gitconfig'

# remove Git sample hooks
command find -- . \
Expand Down Expand Up @@ -993,7 +993,7 @@ git_config_file_locations() {
-e 's|file:||' \
-e 's|\t.*||' \
-e 's|^\.|./.|' \
-e 's|'"${HOME-}"'|~|' |
-e 's|'"${HOME%/}"'|~|' |
LC_ALL='C' command sort -u
)"
done
Expand Down Expand Up @@ -1435,8 +1435,8 @@ elif command gls --color=auto >/dev/null 2>&1; then
elif command ls --color=auto >/dev/null 2>&1; then
alias ls='command ls --color=auto'
alias l='command ls --color=auto -AFgo --time-style=+%4Y-%m-%d\ %l:%M:%S\ %P'
elif test "$(command /bin/ls -G -- "${HOME-}" | command od)" = "$(command ls -G -- "${HOME-}" | command od)" &&
test "$(command ls -G -- "${HOME-}" | command od)" != "$(command ls --color=auto -- "${HOME-}" 2>/dev/null)"; then
elif test "$(command /bin/ls -G -- "${HOME%/}" | command od)" = "$(command ls -G -- "${HOME%/}" | command od)" &&
test "$(command ls -G -- "${HOME%/}" | command od)" != "$(command ls --color=auto -- "${HOME%/}" 2>/dev/null)"; then
alias ls='command ls -G'
alias l='command ls -A -F -G -g -o'
fi
Expand Down Expand Up @@ -1599,12 +1599,12 @@ plist_r() {
command -v -- plutil >/dev/null 2>&1 ||
return 127
case "$(command pwd -P)" in
"${HOME-}" | "${DOTFILES-}")
"${HOME%/}" | "${DOTFILES-}")
return 77
;;
*)
command find -- . \
! -path "${HOME-}"'/Library*' \
! -path "${HOME%/}"'/Library*' \
! -path "${DOTFILES-}"'/Library*' \
! -type l \
! -type d \
Expand Down Expand Up @@ -1648,8 +1648,8 @@ alias rectangle_shortcut='command defaults write com.knollsoft.Rectangle maximiz

# remove
rm() {
if test -d "${HOME-}"'/.Trash'; then
target="${HOME-}"'/.Trash'
if test -d "${HOME%/}"'/.Trash'; then
target="${HOME%/}"'/.Trash'
elif command mkdir -p -- "${XDG_DATA_HOME-}"'/Trash' 2>/dev/null; then
target="${XDG_DATA_HOME-}"'/Trash'
elif command mkdir -p -- "${TMPDIR:-/tmp}"'/.Trash' 2>/dev/null; then
Expand Down Expand Up @@ -1735,7 +1735,7 @@ sca() {
-e 's|'"${custom-}"'|$\custom|' \
-e 's|'"${DOTFILES-}"'|$\DOTFILES|' \
-e 's|'"${XDG_CONFIG_HOME-}"'|$\XDG_CONFIG_HOME|' \
-e 's|'"${HOME-}"'|~|' &&
-e 's|'"${HOME%/}"'|~|' &&
{
printf -- ' passed %s\n' "${test%% *}"
} 2>/dev/null ||
Expand Down Expand Up @@ -1801,7 +1801,7 @@ yamllint_r() {
command find -- . \
! -type d \
! -path "${DOTFILES-}"'/Library*' \
! -path "${HOME-}"'/Library*' \
! -path "${HOME%/}"'/Library*' \
! -path '*/.git/*' \
! -path '*/.well-known/*' \
! -path '*/copilot.vim/*' \
Expand Down Expand Up @@ -1851,5 +1851,5 @@ ohmyzsh() {
command git -c color.status=always -c core.quotePath=false status --untracked-files=no |
command sed -e '$d'
}
alias zshenv='command "${EDITOR-}" -- "${HOME-}/.${SHELL##*[-./]}env"; . "${HOME-}/.${SHELL##*[-./]}rc" && exec -l -- "${SHELL##*[-./]}"'
alias zshrc='command "${EDITOR-}" -- "${HOME-}/.${SHELL##*[-./]}rc"; . "${HOME-}/.${SHELL##*[-./]}rc" && exec -l -- "${SHELL##*[-./]}"'
alias zshenv='command "${EDITOR-}" -- "${HOME%/}/.${SHELL##*[-./]}env"; . "${HOME%/}/.${SHELL##*[-./]}rc" && exec -l -- "${SHELL##*[-./]}"'
alias zshrc='command "${EDITOR-}" -- "${HOME%/}/.${SHELL##*[-./]}rc"; . "${HOME%/}/.${SHELL##*[-./]}rc" && exec -l -- "${SHELL##*[-./]}"'
6 changes: 3 additions & 3 deletions setup/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ printf -- ' a Lucas Larson production\n\n' 2>/dev/null
command sleep 1

# start from `$HOME`
cd "${HOME-}" ||
cd "${HOME%/}" ||
exit 1

# save `date` for backup files
Expand Down Expand Up @@ -228,7 +228,7 @@ command -v -- chsh >/dev/null 2>&1 || {

# Oh My Zsh
command -v -- omz >/dev/null 2>&1 ||
test -d "${ZSH:="${HOME-}"/.oh-my-zsh}" ||
test -d "${ZSH:=${HOME%/}/.oh-my-zsh}" ||
test "$(command curl --fail --silent --location 'https://web.archive.org/web/20210520175616id_/raw.githubusercontent.com/ohmyzsh/ohmyzsh/02d07f3e3dba0d50b1d907a8062bbaca18f88478/tools/install.sh' | command cksum)" != '1976015298 9942' || {
{ set +o xtrace; } 2>/dev/null
printf -- 'installing Oh My Zsh...\n' 2>/dev/null
Expand Down Expand Up @@ -296,7 +296,7 @@ command find -- . \
-type f \
-size 0 \
! -path "${DOTFILES-}"'/Library/*' \
! -path "${HOME-}"'/Library/*' \
! -path "${HOME%/}"'/Library/*' \
! -path '*/.git/*' \
! -path '*/Test*' \
! -path '*/test*' \
Expand Down

0 comments on commit 98cf52d

Please sign in to comment.