From 96d843c9ec7bf733fc1a167ad289450b13577c25 Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Sun, 13 Apr 2014 09:10:54 +0430 Subject: [PATCH] highlight support added to my.zsh --- .gitmodules | 3 +++ my.zsh | 6 ++++++ zsh-syntax-highlighting | 1 + 3 files changed, 10 insertions(+) create mode 100644 .gitmodules create mode 160000 zsh-syntax-highlighting diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..a823837 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "zsh-syntax-highlighting"] + path = zsh-syntax-highlighting + url = git://github.com/zsh-users/zsh-syntax-highlighting.git diff --git a/my.zsh b/my.zsh index fdabe18..69b8f9b 100644 --- a/my.zsh +++ b/my.zsh @@ -17,6 +17,9 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # ----------------------------------------------------------------------------- +current_path=$(cd -P -- "$(dirname -- "$0")" && printf '%s\n' "$(pwd -P)") +current_file=$current_path/$(basename -- "$0") + #[[ -z "$PS1" ]] && return @@ -55,3 +58,6 @@ theme=${THEME:-$myzsh/themes/lxsameer.zsh-theme} project_path=${PROJECTS:-~/src} cdpath=($project_path $cdpath) + + +source $current_path/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh \ No newline at end of file diff --git a/zsh-syntax-highlighting b/zsh-syntax-highlighting new file mode 160000 index 0000000..5320f1e --- /dev/null +++ b/zsh-syntax-highlighting @@ -0,0 +1 @@ +Subproject commit 5320f1e18d5782e29a6637937e37a3aecf9327bb