cleanup .zshrc
This commit is contained in:
37
.zshrc
37
.zshrc
@@ -40,7 +40,7 @@ COMPLETION_WAITING_DOTS="true"
|
|||||||
# Uncomment the following line if you want to change the command execution time
|
# Uncomment the following line if you want to change the command execution time
|
||||||
# stamp shown in the history command output.
|
# stamp shown in the history command output.
|
||||||
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
||||||
# HIST_STAMPS="dd.mm.yyyy"
|
HIST_STAMPS="dd.mm.yyyy"
|
||||||
|
|
||||||
# Would you like to use another custom folder than $ZSH/custom?
|
# Would you like to use another custom folder than $ZSH/custom?
|
||||||
# ZSH_CUSTOM=/path/to/new-custom-folder
|
# ZSH_CUSTOM=/path/to/new-custom-folder
|
||||||
@@ -50,17 +50,11 @@ COMPLETION_WAITING_DOTS="true"
|
|||||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||||
# Add wisely, as too many plugins slow down shell startup.
|
# Add wisely, as too many plugins slow down shell startup.
|
||||||
plugins=(colored-man-pages git docker sublime sudo zsh-eza)
|
plugins=(colored-man-pages git docker sublime sudo zsh-eza)
|
||||||
|
|
||||||
# ansible brew colorize common-aliases direnv dnf fig tmux zsh-navigation-tools zsh-syntax-highliting
|
# ansible brew colorize common-aliases direnv dnf fig tmux zsh-navigation-tools zsh-syntax-highliting
|
||||||
|
|
||||||
# User configuration
|
# User configuration
|
||||||
source .api-keys
|
|
||||||
|
|
||||||
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/opt/homebrew/bin/brew:$HOME/bin:$HOME/.dotfiles/scripte:"
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/opt/homebrew/bin/brew:$HOME/bin:$HOME/.dotfiles/scripte:"
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
||||||
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
||||||
|
|
||||||
# make less more friendly for non-text input files, see lesspipe(1)
|
# make less more friendly for non-text input files, see lesspipe(1)
|
||||||
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
|
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
|
||||||
@@ -69,9 +63,24 @@ source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|||||||
[[ -f "$HOME/.dotfiles/functions" ]] && source "$HOME/.dotfiles/functions"
|
[[ -f "$HOME/.dotfiles/functions" ]] && source "$HOME/.dotfiles/functions"
|
||||||
[[ -f "$HOME/.dotfiles/.commonrc" ]] && source "$HOME/.dotfiles/.commonrc"
|
[[ -f "$HOME/.dotfiles/.commonrc" ]] && source "$HOME/.dotfiles/.commonrc"
|
||||||
|
|
||||||
# ntfy
|
if [[ $OSTYPE == 'darwin'* ]]; then
|
||||||
eval "$(ntfy shell-integration)"
|
# load private api-keys
|
||||||
export AUTO_NTFY_DONE_IGNORE="vim screen meld"
|
source .api-keys
|
||||||
|
|
||||||
|
# ntfy
|
||||||
|
eval "$(ntfy shell-integration)"
|
||||||
|
export AUTO_NTFY_DONE_IGNORE="vim screen meld"
|
||||||
|
|
||||||
|
# some homebrew things
|
||||||
|
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
|
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
|
|
||||||
|
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
|
||||||
|
|
||||||
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||||
|
export PATH="/opt/homebrew/opt/sqlite/bin:$PATH"
|
||||||
|
export HOMEBREW_AUTO_UPDATE_SECS="86400"
|
||||||
|
fi
|
||||||
|
|
||||||
# not saving history immediately
|
# not saving history immediately
|
||||||
setopt noincappendhistory
|
setopt noincappendhistory
|
||||||
@@ -79,18 +88,10 @@ setopt nosharehistory
|
|||||||
|
|
||||||
. $HOME/.shellrc.load
|
. $HOME/.shellrc.load
|
||||||
|
|
||||||
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
|
|
||||||
|
|
||||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
|
||||||
export PATH="/opt/homebrew/opt/sqlite/bin:$PATH"
|
|
||||||
|
|
||||||
# tmux starten
|
# tmux starten
|
||||||
if [ "$TMUX" = "" ]; then exec tmux; fi
|
if [ "$TMUX" = "" ]; then exec tmux; fi
|
||||||
clear && udot
|
clear && udot
|
||||||
|
|
||||||
#brew update
|
|
||||||
export HOMEBREW_AUTO_UPDATE_SECS="86400"
|
|
||||||
|
|
||||||
PATH="/Users/eragos/perl5/bin${PATH:+:${PATH}}"; export PATH;
|
PATH="/Users/eragos/perl5/bin${PATH:+:${PATH}}"; export PATH;
|
||||||
PERL5LIB="/Users/eragos/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
|
PERL5LIB="/Users/eragos/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
|
||||||
PERL_LOCAL_LIB_ROOT="/Users/eragos/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
|
PERL_LOCAL_LIB_ROOT="/Users/eragos/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
|
||||||
|
|||||||
Reference in New Issue
Block a user