From 181e148a8d970b4ddf8080fafaa0e1917edd3841 Mon Sep 17 00:00:00 2001 From: junikimm717 Date: Fri, 21 Jan 2022 20:23:43 -0500 Subject: [PATCH] syntax highlighting stuff modified --- asuser.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/asuser.sh b/asuser.sh index 7dab152..66b02f6 100755 --- a/asuser.sh +++ b/asuser.sh @@ -1,10 +1,10 @@ #!/bin/sh +DIR="$(realpath "$(dirname "$0")")" + # script must start at home directory cd "$HOME" || exit 1; -DIR="$(realpath "$(dirname "$0")")" - usertest() { if test "$(id -u)" -eq 0; then echo "You cannot run this script as root."; @@ -68,8 +68,7 @@ plugins() { sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" - git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \ - "${ZSH_CUSTOM:-~/.oh-my-zsh/custom}"/plugins/zsh-syntax-highlighting + git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting" } dotfiles() {