Skip to content

Instantly share code, notes, and snippets.

@newmen
Created May 13, 2024 14:42
Show Gist options
  • Save newmen/33afc6861a2735342357d219722da26d to your computer and use it in GitHub Desktop.
Save newmen/33afc6861a2735342357d219722da26d to your computer and use it in GitHub Desktop.
.zshrc
# .zshrc
#autoload -Uz compinit && compinit
autoload -U select-word-style
select-word-style bash
setopt extended_history
setopt hist_expire_dups_first
setopt hist_ignore_dups
setopt hist_ignore_all_dups
setopt hist_ignore_space
setopt hist_find_no_dups
setopt hist_save_no_dups
setopt hist_beep
#setopt share_history
bindkey "^[a" beginning-of-line
bindkey "^[e" end-of-line
bindkey '^[[H' beginning-of-line
bindkey '^[[F' end-of-line
source ${HOME}/.random_message.sh
source ${HOME}/.zsh_aliases
source "/usr/local/opt/zsh-git-prompt/zshrc.sh"
PROMPT='%B%F{221}%~%f%b $(git_super_status)
%D{%H:%M:%S} %# '
# PROMPT='%~$(git_super_status) %D{%L:%M:%S %p} %# '
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_OPS='--extended --layout=reverse --border'
export FZF_DEFAULT_OPS='-x --layout=reverse --header="" --prompt="" --with-nth=5'
export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git'
#export FZF_DEFAULT_COMMAND="(git ls-tree -r --name-only HEAD ||
# find . -path "*/\.*" -prune -o -type f -print -o -type l -print |
# sed s/^..//) 2> /dev/null'"
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export DOCKER_HOST=unix:///Users/newmen/.docker/run/docker.sock
export TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE=/var/run/docker.sock
export PYTHONSTARTUP=$HOME/.pystartup
#export JAVA_HOME='/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home'
#export JAVA_HOME='/Library/Java/JavaVirtualMachines/jdk-11.0.5.jdk/Contents/Home'
#export JAVA_HOME='/Library/Java/JavaVirtualMachines/jdk-17.0.3.1.jdk/Contents/Home'
export JAVA_HOME='/Users/newmen/Java/jdk-18.0.1.1.jdk/Contents/Home'
#export JAVA_HOME='/Users/newmen/Java/jdk-11.0.2.jdk/Contents/Home'
export JBOSS_HOME=/Users/newmen/EAP-7.2.0
#export JBOSS_HOME=/Users/newmen/wildfly-11.0.0.Final
export JBOSS_CLI=$JBOSS_HOME/bin/jboss-cli.sh
export JBOSS_MODE=${1:-"standalone"}
export JBOSS_CONFIG=${2:-"$JBOSS_MODE.xml"}
export PATH="$JAVA_HOME/bin:$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
export PATH="/usr/local/opt/tcl-tk/bin:$PATH"
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
export LEIN_USE_BOOTCLASSPATH=no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment