From e5877a77fd6a848c761ab3394efe8c66dc024df5 Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Fri, 30 Aug 2019 13:13:04 +0300 Subject: [PATCH] move scripts from zsh/bin to scripts --- {zsh/bin => scripts}/colortest | 0 {zsh/bin => scripts}/colortest.awk | 0 {zsh/bin => scripts}/colortest2 | 0 {zsh/bin => scripts}/colortest2.awk | 0 {zsh/bin => scripts}/insert-text-face | 0 zsh/functions.zsh | 2 +- zsh/path.zsh | 2 +- 7 files changed, 2 insertions(+), 2 deletions(-) rename {zsh/bin => scripts}/colortest (100%) rename {zsh/bin => scripts}/colortest.awk (100%) rename {zsh/bin => scripts}/colortest2 (100%) rename {zsh/bin => scripts}/colortest2.awk (100%) rename {zsh/bin => scripts}/insert-text-face (100%) diff --git a/zsh/bin/colortest b/scripts/colortest similarity index 100% rename from zsh/bin/colortest rename to scripts/colortest diff --git a/zsh/bin/colortest.awk b/scripts/colortest.awk similarity index 100% rename from zsh/bin/colortest.awk rename to scripts/colortest.awk diff --git a/zsh/bin/colortest2 b/scripts/colortest2 similarity index 100% rename from zsh/bin/colortest2 rename to scripts/colortest2 diff --git a/zsh/bin/colortest2.awk b/scripts/colortest2.awk similarity index 100% rename from zsh/bin/colortest2.awk rename to scripts/colortest2.awk diff --git a/zsh/bin/insert-text-face b/scripts/insert-text-face similarity index 100% rename from zsh/bin/insert-text-face rename to scripts/insert-text-face diff --git a/zsh/functions.zsh b/zsh/functions.zsh index 2d70658..8ffd490 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -13,7 +13,7 @@ is_android() { } command_exists() { - command -v "$1" >/dev/null 2>&1 + command -v "$1" &>/dev/null } source_if_exists() { diff --git a/zsh/path.zsh b/zsh/path.zsh index 56628cd..0f7de56 100644 --- a/zsh/path.zsh +++ b/zsh/path.zsh @@ -47,7 +47,7 @@ path=("$GOPATH/bin" "${path[@]}") path=(~/.local/bin "${path[@]}") # add my binaries and completions -path=("$ZSH_DOTFILES/bin" "${path[@]}") +path=("$ZSH_DOTFILES/../scripts" "${path[@]}") fpath=("$ZSH_DOTFILES/completions" "${fpath[@]}") # check for Rust installed via rustup