diff --git a/zsh/zshalias b/zsh/zshalias new file mode 100644 index 0000000..33e4ff1 --- /dev/null +++ b/zsh/zshalias @@ -0,0 +1,21 @@ +# general stuff +# +alias ls="ls --color=auto -T 0" + +# defining alias for development + +# tomcat +alias tcup="tomcat.sh start" +alias tcdw="tomcat.sh stop" +alias tcre="tomcat.sh restart" +alias tclog="tomcat.sh log" +alias cdtc="cd $CATALINA_HOME" + +# sling +alias sllog="slinglog.sh" +alias cdsl="cd $SLING_HOME" + +#java +alias cdj="cd $JAVA_HOME" +alias psjava="ps aux | grep java | grep -v grep" +alias killjava="skill -9 java" diff --git a/zshrc b/zshrc index 04c35da..743da2d 100644 --- a/zshrc +++ b/zshrc @@ -21,8 +21,6 @@ setopt SHARE_HISTORY setopt HIST_VERIFY -# Alias -alias ls="ls --color=auto -T 0" ## get keys working bindkey "^[[2~" yank # Insert @@ -119,7 +117,12 @@ promptinit # Use the wunjo prompt theme prompt adam2 -if [ -f $HOME/.local_profile ] -then - . HOME/.local_profile +if [ -f $HOME/.local_profile ] then + . $HOME/.local_profile +fi + +# Alias + +if [ -f $HOME/.zsh/zshalias ] then + . $HOME/.zsh/zshalias fi