From c82d6264c2d67ca6a0b8b46e3cf72e904129d267 Mon Sep 17 00:00:00 2001 From: mlunax Date: Sat, 25 Jan 2020 01:53:14 +0100 Subject: [PATCH] add devTools env and update path.zsh --- .zsh/env.zsh | 3 +++ .zsh/path.zsh | 3 ++- .zshrc | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .zsh/env.zsh diff --git a/.zsh/env.zsh b/.zsh/env.zsh new file mode 100644 index 0000000..bea2253 --- /dev/null +++ b/.zsh/env.zsh @@ -0,0 +1,3 @@ +# Set Devs Tools +# [] = {flutter} +export devTools="" \ No newline at end of file diff --git a/.zsh/path.zsh b/.zsh/path.zsh index 1a3a8ea..dc1b23b 100644 --- a/.zsh/path.zsh +++ b/.zsh/path.zsh @@ -1,2 +1,3 @@ # Flutter -export PATH="$PATH:$HOME/development/flutter/bin" +source $OTHER/env.zsh +grep -q 'flutter' <<< $devTools && export PATH="$PATH:$HOME/development/flutterxd/bin" \ No newline at end of file diff --git a/.zshrc b/.zshrc index eb449fd..24a53c9 100644 --- a/.zshrc +++ b/.zshrc @@ -1,5 +1,6 @@ export TERM="xterm-256color" export OTHER=$HOME/.zsh +export OTHER=.zsh export ZSH=$HOME/.oh-my-zsh export ZSH_THEME="powerlevel9k/powerlevel9k" source $OTHER/powerlevel_settings.sh @@ -25,4 +26,4 @@ if [ -d "$HOME/.zsh-custom" ]; then fi done fi - autoload -Uz compinit && compinit -i +autoload -Uz compinit && compinit -i