Skip to content

Commit

Permalink
no more synology
Browse files Browse the repository at this point in the history
  • Loading branch information
davidosomething committed May 7, 2023
1 parent 23220bb commit c9ee194
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
2 changes: 0 additions & 2 deletions shell/vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ case "$DOTFILES_OS" in
export DOTFILES_DISTRO="debian"
elif [ -f /etc/fedora-release ]; then
export DOTFILES_DISTRO="fedora"
elif [ -f /etc/synoinfo.conf ]; then
export DOTFILES_DISTRO="synology"
fi
;;
esac
Expand Down
17 changes: 7 additions & 10 deletions zsh/dot.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -382,16 +382,13 @@ zstyle ':completion:*:*:-redirect-,2>,*:*' file-patterns '*.log'
# ----------------------------------------------------------------------------

# terse zsh-specific up
# skip synology because zsh compiled without regex
if [[ "$DOTFILES_DISTRO" != "synology" ]]; then
up() {
local limit=1
local d=""
[[ $1 =~ '^[0-9]+$' ]] && limit=$1
while (( limit-- )); do d="../${d}"; done
cd "$d"
}
fi
up() {
local limit=1
local d=""
[[ $1 =~ '^[0-9]+$' ]] && limit=$1
while (( limit-- )); do d="../${d}"; done
cd "$d"
}

. "${ASDF_DATA_DIR}/plugins/java/set-java-home.zsh" 2>/dev/null

Expand Down

0 comments on commit c9ee194

Please sign in to comment.