From 78bb71d83c1945b8c43450953e5d8fc9fe2414bf Mon Sep 17 00:00:00 2001 From: tim Date: Wed, 3 Aug 2022 18:36:32 +0200 Subject: [PATCH] Also installs stow during install Only add composer to path if it exists --- install.sh | 2 +- zsh/.zshrc | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index e97be41..8587a70 100755 --- a/install.sh +++ b/install.sh @@ -1,6 +1,6 @@ !/bin/bash -sudo apt install zsh wget curl +sudo apt install zsh wget curl stow cd "$(dirname "$0")" sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel10k diff --git a/zsh/.zshrc b/zsh/.zshrc index 061ed1d..a9ae3b5 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -133,7 +133,11 @@ fi export PATH=$HOME/.local/bin:$PATH export PATH=$HOME/bin:$PATH export PATH=$PATH:/snap/bin -export PATH=$PATH:$HOME/.composer/vendor/bin +if command -v composer &> /dev/null +then + export PATH=$PATH:$HOME/.composer/vendor/bin + export PATH=$PATH:$(composer global config bin-dir --absolute --quiet) +fi export PATH=$PATH:$HOME/.symfony/bin # Go