Add zshrc and tmux config
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
typeset -g POWERLEVEL9K_INSTANT_PROMPT=off
|
||||
# Powerlevel10k instant prompt
|
||||
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||
fi
|
||||
|
||||
COLORTERM=truecolor
|
||||
fastfetch
|
||||
|
||||
# ===== HISTORIA-ASETUKSET =====
|
||||
HISTFILE=~/.zsh_history
|
||||
HISTSIZE=10000
|
||||
SAVEHIST=10000
|
||||
setopt APPEND_HISTORY
|
||||
setopt SHARE_HISTORY
|
||||
setopt HIST_IGNORE_ALL_DUPS
|
||||
setopt HIST_FIND_NO_DUPS
|
||||
setopt HIST_SAVE_NO_DUPS
|
||||
bindkey '^[[A' history-beginning-search-backward
|
||||
bindkey '^[[B' history-beginning-search-forward
|
||||
|
||||
# Zinit
|
||||
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
|
||||
if [[ ! -f $ZINIT_HOME/zinit.zsh ]]; then
|
||||
print -P "%F{33}Installing Zinit...%f"
|
||||
command mkdir -p "$(dirname $ZINIT_HOME)"
|
||||
command git clone https://github.com/zdharma-continuum/zinit "$ZINIT_HOME"
|
||||
fi
|
||||
source "${ZINIT_HOME}/zinit.zsh"
|
||||
|
||||
# Zinit annexes
|
||||
zinit light-mode for \
|
||||
zdharma-continuum/zinit-annex-as-monitor \
|
||||
zdharma-continuum/zinit-annex-bin-gem-node \
|
||||
zdharma-continuum/zinit-annex-patch-dl \
|
||||
zdharma-continuum/zinit-annex-rust
|
||||
|
||||
# Pluginit
|
||||
zinit light zsh-users/zsh-completions
|
||||
zinit light zsh-users/zsh-autosuggestions
|
||||
zinit light zsh-users/zsh-syntax-highlighting
|
||||
zinit light Aloxaf/fzf-tab
|
||||
zinit light MichaelAquilina/zsh-you-should-use
|
||||
|
||||
# Oh-My-Zsh snippets
|
||||
zinit snippet OMZP::colored-man-pages
|
||||
zinit snippet OMZP::systemd
|
||||
zinit snippet OMZP::git
|
||||
zinit snippet OMZP::podman
|
||||
|
||||
# Completions
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
|
||||
# Powerlevel10k theme
|
||||
source ~/powerlevel10k/powerlevel10k.zsh-theme
|
||||
|
||||
# PATH
|
||||
typeset -U PATH path
|
||||
export PATH="$HOME/.cargo/bin:$HOME/.local/bin:/opt/nvim-linux-x86_64/bin:$PATH"
|
||||
|
||||
# eza aliases
|
||||
alias ls="eza --icons"
|
||||
alias ll="eza -lah --icons"
|
||||
alias la="eza -a --icons"
|
||||
alias lt="eza --tree --icons"
|
||||
|
||||
# Modern CLI tools
|
||||
alias cat="bat"
|
||||
alias grep="rg"
|
||||
alias find="fd"
|
||||
|
||||
# fzf
|
||||
source /usr/share/fzf/shell/key-bindings.zsh
|
||||
|
||||
# zoxide
|
||||
eval "$(zoxide init zsh --cmd z)"
|
||||
alias cd="z"
|
||||
|
||||
# p10k config
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
[ -s "/home/mikko/.jabba/jabba.sh" ] && source "/home/mikko/.jabba/jabba.sh"
|
||||
Reference in New Issue
Block a user