From daf864684ebea482baa7ca1bc9bb47002130d3fb Mon Sep 17 00:00:00 2001 From: tracer Date: Fri, 3 Jan 2020 12:23:17 +0100 Subject: [PATCH] added sanity check in setup.sh --- .zshrc | 4 ++++ setup.sh | 2 ++ 2 files changed, 6 insertions(+) diff --git a/.zshrc b/.zshrc index 16f4c65..fdac3a9 100644 --- a/.zshrc +++ b/.zshrc @@ -17,4 +17,8 @@ setopt auto_cd alias l="ls" alias lr="ls -ltr" alias ll="ls -las" +setopt PROMPT_SUBST +export PROMPT='$(cdbm -add)'$PROMPT +function c() { dir=$(cdbm 3>&1 1>&2 2>&3); cd $dir; } + diff --git a/setup.sh b/setup.sh index 9e7428c..7207162 100644 --- a/setup.sh +++ b/setup.sh @@ -1,4 +1,6 @@ #!/bin/sh cp Settings/.zshrc Settings/.vimrc Settings/.zprofile Settings/.gitconfig . +if [ ! -d /usr/local/bin ]; then mkdir -p /usr/local/bin; fi +cp Settings/cdbm /usr/local/bin