Compare commits

..

No commits in common. "cfa828ec199e0268bce5bab66f974c20c16f369c" and "9793f10c979a0a414294725fa8829d5621331859" have entirely different histories.

4 changed files with 2 additions and 50 deletions

1
.zimrc
View file

@ -6,7 +6,6 @@ zmodule crater2150-zsh/chroma-z
zmodule $ZDOTDIR/plugins/tmpsrc zmodule $ZDOTDIR/plugins/tmpsrc
zmodule $ZDOTDIR/plugins/pyenv zmodule $ZDOTDIR/plugins/pyenv
zmodule $ZDOTDIR/plugins/cs-java-home
zmodule $ZDOTDIR/plugins/highlight-config zmodule $ZDOTDIR/plugins/highlight-config
zmodule zsh-users/zsh-syntax-highlighting zmodule zsh-users/zsh-syntax-highlighting

View file

@ -52,8 +52,8 @@ fork() {
"$@" &>/dev/null &| "$@" &>/dev/null &|
} }
alias en="pipx run dict.cc.py de en" alias en="dict.cc.py de en"
alias de="pipx run dict.cc.py en de" alias de="dict.cc.py en de"
su() { su() {
if [[ -z "$@" ]]; then if [[ -z "$@" ]]; then

View file

@ -88,12 +88,6 @@ sv-manage() {
s@run@\x1b[1;92mrun\x1b[0m@g s@run@\x1b[1;92mrun\x1b[0m@g
s@down@\x1b[1;31mdown\x1b[0m@g s@down@\x1b[1;31mdown\x1b[0m@g
" | column -t " | column -t
;;
status)
for service in ${SVDIR:-/var/service}/*/supervise; do
sv status ${service:h}
done
;;
esac esac
} }

View file

@ -1,41 +0,0 @@
typeset -a chpwd_functions __chromaz_extra_left
SYSTEM_JAVA_HOME=${CS_FORMER_JAVA_HOME:-$JAVA_HOME}
local cs_jvm_id
local cs_java_home
remove-from-path() {
for elem in $@; do
path=("${(@)path:#$elem}")
done
}
cs-set-java-home() {
local dir=${1:-${PWD:a}}
if [[ $dir == / ]]; then
export JAVA_HOME=${SYSTEM_JAVA_HOME}
remove-from-path $cs_java_home/bin
cs_jvm_id=
return
fi
if [[ -e $dir/.jvm ]]; then
cs_jvm_id=$(<$dir/.jvm)
#echo "Setting Java version to ${cs_jvm_id}"
cs_java_home=$(cs java-home --jvm ${cs_jvm_id})
path=( $cs_java_home/bin $path )
export JAVA_HOME=${cs_java_home}
else
cs-set-java-home ${dir:h}
fi
#
}
cs-current-java() {
echo ${cs_jvm_id:+JVM: }${cs_jvm_id}
}
chpwd_functions+=cs-set-java-home
__chromaz_extra_left+=cs-current-java
cs-set-java-home