Skip to content

Commit

Permalink
updated .zsh script for packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
portaloffreedom committed Nov 22, 2021
1 parent be015ab commit 014be3b
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions rustline.zsh
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
DIR="$( dirname "$0" )"
RUSTLINE_COMMAND=$DIR/target/release/rustline

if command -v rustline &> /dev/null
then
RUSTLINE_COMMAND=$( command -v rustline )
else
RUSTLINE_COMMAND="$DIR/target/release/rustline"
fi

_rustline_append_precmd_function() {
if test -z "${precmd_functions[(re)$1]}" ; then
precmd_functions+=( $1 )
fi
if test -z "${precmd_functions[(re)$1]}" ; then
precmd_functions+=( $1 )
fi
}

integer _POWERLINE_JOBNUM
Expand Down

0 comments on commit 014be3b

Please sign in to comment.