From 7626c52c92dd249d679c0490977248b4f3a34879 Mon Sep 17 00:00:00 2001 From: JGill Date: Mon, 20 Sep 2021 09:45:47 +0530 Subject: [PATCH] Making it work --- ezshrc.zsh | 4 ++-- quickz.sh | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/ezshrc.zsh b/ezshrc.zsh index e80e9dd..daf58fa 100644 --- a/ezshrc.zsh +++ b/ezshrc.zsh @@ -128,6 +128,8 @@ source $ZSH/oh-my-zsh.sh # Add to PATH to Install and run programs with "pip install --user" export PATH=$PATH:~/.local/bin +export PATH=$PATH:~/.config/ezsh/bin + NPM_PACKAGES="${HOME}/.npm" PATH="$NPM_PACKAGES/bin:$PATH" @@ -138,8 +140,6 @@ export MARKER_KEY_NEXT_PLACEHOLDER="\C-b" #change maker key binding from Ctr+t [[ -s "$HOME/.local/share/marker/marker.sh" ]] && source "$HOME/.local/share/marker/marker.sh" -export PATH=$PATH:~/.quickzsh/todo/bin #usig alias doesn't properly work - autoload -U compinit && compinit -C -d ~/.cache/zsh/.zcompdump # zsh-completions # autoload bashcompinit # bash completions # bashcompinit diff --git a/quickz.sh b/quickz.sh index 8d0ea86..3a07b33 100755 --- a/quickz.sh +++ b/quickz.sh @@ -27,8 +27,6 @@ else git clone --depth=1 git://github.com/robbyrussell/oh-my-zsh.git ~/.config/ezsh/oh-my-zsh fi -cp -f .zshrc ~/ - if [ -d ~/.quickzsh ]; then echo -e "The setup was installed at '~/.quickzsh'. Moving it to '~/.config/ezsh' \n" @@ -37,6 +35,10 @@ else mkdir -p ~/.config/ezsh # external plugins, things, will be instlled in here fi +cp -f .zshrc ~/ +cp -f ezshrc.zsh ~/.config/ezsh/ + +mkdir -p ~/.config/ezsh/zshrc # PLACE YOUR ZSHRC CONFIGURATIONS OVER THERE mkdir -p ~/.cache/zsh/ # this will be used to store .zcompdump zsh completion cache files which normally clutter $HOME if [ -f ~/.zcompdump ]; then @@ -120,10 +122,11 @@ fi if [ ! -L ~/.config/ezsh/todo/bin/todo.sh ]; then echo -e "Installing todo.sh in ~/.config/ezsh/todo\n" mkdir -p ~/.config/ezsh/bin + mkdir -p ~/.config/ezsh/todo wget -q --show-progress "https://github.com/todotxt/todo.txt-cli/releases/download/v2.12.0/todo.txt_cli-2.12.0.tar.gz" -P ~/.config/ezsh/ tar xvf ~/.config/ezsh/todo.txt_cli-2.12.0.tar.gz -C ~/.config/ezsh/todo --strip 1 && rm ~/.config/ezsh/todo.txt_cli-2.12.0.tar.gz - ln -s ~/.config/ezsh/todo/todo.sh ~/.config/ezsh/bin/todo.sh # so only .../bin is included in $PATH - ln -s ~/.config/ezsh/todo/todo.cfg ~/.todo.cfg # it expects it there or ~/todo.cfg or ~/.todo/config + ln -s -f ~/.config/ezsh/todo/todo.sh ~/.config/ezsh/bin/todo.sh # so only .../bin is included in $PATH + ln -s -f ~/.config/ezsh/todo/todo.cfg ~/.todo.cfg # it expects it there or ~/todo.cfg or ~/.todo/config else echo -e "todo.sh is already instlled in ~/.config/ezsh/todo/bin/\n" fi