Did some clean up, mostly just removing crap
Had a TODO in there. I implemented it. It ended up being exactly the same number of lines. No reason to try to smart kid the code for the same amount of code that's less readable.
This commit is contained in:
parent
519fa2ab98
commit
d5dee9f714
1 changed files with 0 additions and 14 deletions
14
zsh/.zshrc
14
zsh/.zshrc
|
@ -4,42 +4,30 @@
|
||||||
export HOMEBREW_NO_AUTO_UPDATE=1
|
export HOMEBREW_NO_AUTO_UPDATE=1
|
||||||
export HOMEBREW_NO_INSTALL_CLEANUP=1
|
export HOMEBREW_NO_INSTALL_CLEANUP=1
|
||||||
|
|
||||||
# export GPG_TTY=$(tty)
|
|
||||||
|
|
||||||
source $HOME/.env
|
source $HOME/.env
|
||||||
source $HOME/.aliases
|
source $HOME/.aliases
|
||||||
|
|
||||||
eval `dircolors $HOME/.dircolors`
|
eval `dircolors $HOME/.dircolors`
|
||||||
|
|
||||||
# TODO: Could set the base directory and source the zsh stuff
|
|
||||||
if [[ `uname` == Darwin ]]; then
|
if [[ `uname` == Darwin ]]; then
|
||||||
# macOS
|
# macOS
|
||||||
# Run this to generate ~/.fzf.zsh: $(brew --prefix)/opt/fzf/install
|
|
||||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||||
|
|
||||||
source /opt/homebrew/share/zsh-history-substring-search/zsh-history-substring-search.zsh
|
source /opt/homebrew/share/zsh-history-substring-search/zsh-history-substring-search.zsh
|
||||||
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
elif command -v apt &> /dev/null; then
|
elif command -v apt &> /dev/null; then
|
||||||
# Debian
|
# Debian
|
||||||
source /usr/share/doc/fzf/examples/completion.zsh
|
source /usr/share/doc/fzf/examples/completion.zsh
|
||||||
source /usr/share/doc/fzf/examples/key-bindings.zsh
|
source /usr/share/doc/fzf/examples/key-bindings.zsh
|
||||||
|
|
||||||
source /usr/share/zsh-history-substring-search/zsh-history-substring-search.zsh
|
source /usr/share/zsh-history-substring-search/zsh-history-substring-search.zsh
|
||||||
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
elif command -v pacman &> /dev/null; then
|
elif command -v pacman &> /dev/null; then
|
||||||
# Arch
|
# Arch
|
||||||
source /usr/share/fzf/completion.zsh
|
source /usr/share/fzf/completion.zsh
|
||||||
source /usr/share/fzf/key-bindings.zsh
|
source /usr/share/fzf/key-bindings.zsh
|
||||||
|
|
||||||
source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
|
source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
|
||||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If you receive "highlighters directory not found" error message, │
|
|
||||||
# you may need to add the following to your .zshenv: │
|
|
||||||
# export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=/opt/homebrew/share/zsh-syntax-highlighting/highlighte│
|
|
||||||
# rs
|
|
||||||
|
|
||||||
HISTFILE=$HOME/.zsh_history
|
HISTFILE=$HOME/.zsh_history
|
||||||
HISTSIZE=1000000
|
HISTSIZE=1000000
|
||||||
SAVEHIST=1000000
|
SAVEHIST=1000000
|
||||||
|
@ -131,5 +119,3 @@ load-nvmrc() {
|
||||||
add-zsh-hook chpwd load-nvmrc
|
add-zsh-hook chpwd load-nvmrc
|
||||||
|
|
||||||
load-nvmrc
|
load-nvmrc
|
||||||
# Meh, fuck M$
|
|
||||||
# export PATH="/usr/local/share/dotnet/x64:$PATH"
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue