Tell gemini to cleanup my configuration
This commit is contained in:
parent
d8783c14a0
commit
6d3b18b810
1 changed files with 58 additions and 25 deletions
81
home/.zshrc
81
home/.zshrc
|
@ -1,4 +1,8 @@
|
|||
# Lines configured by zsh-newuser-install
|
||||
#==============================================================================
|
||||
# Zsh Configuration
|
||||
#==============================================================================
|
||||
|
||||
# History settings
|
||||
HISTFILE=~/.histfile
|
||||
HISTSIZE=100000
|
||||
SAVEHIST=100000
|
||||
|
@ -8,21 +12,32 @@ setopt INC_APPEND_HISTORY # Write to history file immediately, not when shell
|
|||
setopt SHARE_HISTORY # Share history between all sessions
|
||||
setopt HIST_IGNORE_DUPS # Don't save duplicate commands
|
||||
setopt HIST_IGNORE_SPACE # Don't save commands starting with space
|
||||
bindkey -v
|
||||
# End of lines configured by zsh-newuser-install
|
||||
# The following lines were added by compinstall
|
||||
zstyle :compinstall filename '/home/aselimov/.zshrc'
|
||||
|
||||
export LS_COLORS='di=1;37:ln=35:so=32:pi=33:ex=1;32:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43'
|
||||
#==============================================================================
|
||||
# Environment Variables
|
||||
#==============================================================================
|
||||
|
||||
#~/bin/daily_scripture.sh
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
# End of lines added by compinstall
|
||||
#
|
||||
export OMPI_MCA_rmaps_base_oversubscribe=1
|
||||
export CLICOLOR=1
|
||||
export LSCOLORS=ExGxBxDxCxEgEdxbxgxcxd
|
||||
export LS_COLORS='di=1;37:ln=35:so=32:pi=33:ex=1;32:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43'
|
||||
export XKB_DEFAULT_OPTIONS="caps:escape"
|
||||
export PASSWORD_STORE_CHARACTER_SET='a-zA-Z0-9+\-$!*_='
|
||||
export XDEB_PKGROOT=${HOME}/.config/xdeb
|
||||
|
||||
# Add cuda to path
|
||||
export PATH="$PATH:/usr/local/cuda-12.8/bin"
|
||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-12.8/lib64"
|
||||
|
||||
#==============================================================================
|
||||
# Aliases
|
||||
#==============================================================================
|
||||
|
||||
alias clip2png="xclip -selection clipboard -target image/png -out"
|
||||
|
||||
#==============================================================================
|
||||
# Functions
|
||||
#==============================================================================
|
||||
|
||||
load_env() {
|
||||
set -a
|
||||
|
@ -30,43 +45,61 @@ load_env() {
|
|||
set +a
|
||||
}
|
||||
|
||||
alias clip2png="xclip -selection clipboard -target image/png -out"
|
||||
#==============================================================================
|
||||
# Completions
|
||||
#==============================================================================
|
||||
|
||||
export XKB_DEFAULT_OPTIONS="caps:escape"
|
||||
export PASSWORD_STORE_CHARACTER_SET='a-zA-Z0-9+\-$!*_='
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
zstyle ':compinstall' filename '/home/aselimov/.zshrc'
|
||||
zstyle -e ':completion:*:hosts' hosts 'reply=(
|
||||
${=${${(f)"$(cat {/etc/ssh_,~/ar.ssh/known_}hosts(|2)(N) 2>/dev/null)"}%%[#| ]*}//,/ }
|
||||
${=${${${${(@M)${(f)"$(cat ~/.ssh/config 2>/dev/null)"}:#Host *}#Host }:#*\**}:#*\?*}}
|
||||
)'
|
||||
|
||||
XDEB_PKGROOT=${HOME}/.config/xdeb
|
||||
#==============================================================================
|
||||
# Plugins & Tools
|
||||
#==============================================================================
|
||||
|
||||
# nvm
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||
|
||||
# Add cuda to path
|
||||
export PATH="$PATH:/usr/local/cuda-12.8/bin"
|
||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-12.8/lib64"
|
||||
|
||||
# ghcup
|
||||
[ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env
|
||||
|
||||
# pyenv
|
||||
if [ $(which pyenv 2>&1 1>/dev/null) ]; then
|
||||
export PYENV_ROOT="$HOME/.pyenv"
|
||||
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
||||
eval "$(pyenv init - zsh)"
|
||||
fi
|
||||
|
||||
# starship
|
||||
eval "$(starship init zsh)"
|
||||
zstyle -e ':completion:*:hosts' hosts 'reply=(
|
||||
${=${${(f)"$(cat {/etc/ssh_,~/ar.ssh/known_}hosts(|2)(N) 2>/dev/null)"}%%[#| ]*}//,/ }
|
||||
${=${${${${(@M)${(f)"$(cat ~/.ssh/config 2>/dev/null)"}:#Host *}#Host }:#*\**}:#*\?*}}
|
||||
)'
|
||||
|
||||
# zsh-autosuggestions
|
||||
source "$HOME/.config/zsh/zsh-autosuggestions/zsh-autosuggestions.zsh"
|
||||
|
||||
# zsh-syntax-highlighting
|
||||
source "$HOME/.config/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
||||
|
||||
# zsh-history-substring-search
|
||||
source "$HOME/.config/zsh/zsh-history-substring-search/zsh-history-substring-search.zsh"
|
||||
|
||||
#==============================================================================
|
||||
# Keybindings
|
||||
#==============================================================================
|
||||
|
||||
bindkey -v
|
||||
bindkey '^[[A' history-substring-search-up
|
||||
bindkey '^[[B' history-substring-search-down
|
||||
|
||||
# Settings that need to swap between Mac and Linux
|
||||
#==============================================================================
|
||||
# OS-Specific Configuration
|
||||
#==============================================================================
|
||||
|
||||
if [ "$(uname)" = "Darwin" ]; then
|
||||
export PATH="$PATH:/opt/homebrew/bin"
|
||||
alias ls="gls --classify --group-directories-first --color"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue