From 5d67ba972c06eef6c22e72b5228a35c0481bd634 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 2 Sep 2012 22:56:32 +0100 Subject: [PATCH] Add z command from my own fork --- .gitmodules | 3 +++ shell/_main.sh | 3 +++ shell/z | 1 + shell/z.sh | 8 ++++++++ 4 files changed, 15 insertions(+) create mode 160000 shell/z create mode 100644 shell/z.sh diff --git a/.gitmodules b/.gitmodules index c1e0c56..ee0271d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -13,3 +13,6 @@ [submodule "shell/zsh/zsh-syntax-highlighting"] path = shell/zsh/zsh-syntax-highlighting url = git://github.com/zsh-users/zsh-syntax-highlighting.git +[submodule "shell/z"] + path = shell/z + url = git@github.com:jimeh/z.git diff --git a/shell/_main.sh b/shell/_main.sh index 12ed752..52da63a 100644 --- a/shell/_main.sh +++ b/shell/_main.sh @@ -35,5 +35,8 @@ source "$DOTSHELL/sbcl.sh" # Services source "$DOTSHELL/services.sh" +# Shell related +source "$DOTSHELL/z.sh" + # Environment Setup source "$DOTSHELL/env.sh" diff --git a/shell/z b/shell/z new file mode 160000 index 0000000..03b37b0 --- /dev/null +++ b/shell/z @@ -0,0 +1 @@ +Subproject commit 03b37b073e08d9657870180e07434f031c1b94f1 diff --git a/shell/z.sh b/shell/z.sh new file mode 100644 index 0000000..34d2c35 --- /dev/null +++ b/shell/z.sh @@ -0,0 +1,8 @@ +# +# Setup for z (https://github.com/rupa/z) +# + +if [ -f "$DOTSHELL/z/z.sh" ]; then + _Z_NO_RESOLVE_SYMLINKS=1 + source "$DOTSHELL/z/z.sh" +fi