feat: remade scripts to be simpler
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
fastfetch
|
||||
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
|
||||
if [ ! -d "$ZINIT_HOME" ]; then
|
||||
mkdir -p "$(dirname "$ZINIT_HOME")"
|
||||
git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
|
||||
fi
|
||||
|
||||
source "${ZINIT_HOME}/zinit.zsh"
|
||||
|
||||
# User configuration
|
||||
#Path
|
||||
[ -f "$HOME/.zprofile" ] && source "$HOME/.zprofile"
|
||||
|
||||
# Aliases
|
||||
[ -f "$HOME/.common_aliases" ] && source "$HOME/.common_aliases"
|
||||
[ -f "$HOME/.os_aliases" ] && source "$HOME/.os_aliases"
|
||||
|
||||
# Zsh Plugins
|
||||
zinit light zsh-users/zsh-autosuggestions
|
||||
zinit light zsh-users/zsh-completions
|
||||
zinit light zsh-users/zsh-syntax-highlighting
|
||||
zinit light Aloxaf/fzf-tab
|
||||
|
||||
#Add in snippets
|
||||
zinit snippet OMZP::git
|
||||
zinit snippet OMZP::sudo
|
||||
zinit snippet OMZP::command-not-found
|
||||
|
||||
# Initialize compinit for completions
|
||||
autoload -U compinit && compinit
|
||||
|
||||
zinit cdreplay -q
|
||||
|
||||
#History Config
|
||||
HISTSIZE=5000
|
||||
HISTFILE=~/.zsh_history
|
||||
SAVEHIST=$HISTSIZE
|
||||
HISTDUP=erase
|
||||
setopt appendhistory
|
||||
setopt sharehistory
|
||||
setopt hist_ignore_space
|
||||
setopt hist_save_no_dups
|
||||
setopt hist_ignore_dups
|
||||
setopt hist_find_no_dups
|
||||
|
||||
#Completion Styling
|
||||
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
|
||||
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
|
||||
zstyle ':completion:*' menu no
|
||||
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'ls --color $realpath'
|
||||
|
||||
|
||||
#Conda Config
|
||||
# >>> conda initialize >>>
|
||||
# !! Contents within this block are managed by 'conda init' !!
|
||||
__conda_setup="$('/Users/fernandovideira/miniforge3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
|
||||
if [ $? -eq 0 ]; then
|
||||
eval "$__conda_setup"
|
||||
else
|
||||
if [ -f "/Users/fernandovideira/miniforge3/etc/profile.d/conda.sh" ]; then
|
||||
. "/Users/fernandovideira/miniforge3/etc/profile.d/conda.sh"
|
||||
else
|
||||
export PATH="/Users/fernandovideira/miniforge3/bin:$PATH"
|
||||
fi
|
||||
fi
|
||||
unset __conda_setup
|
||||
|
||||
eval "$(direnv hook zsh)"
|
||||
eval "$(fzf --zsh)"
|
||||
eval "$(zoxide init zsh --cmd cd)"
|
||||
Reference in New Issue
Block a user