aktu zsh konf
This commit is contained in:
parent
9b42642822
commit
aa44efa7c7
5 changed files with 66 additions and 10 deletions
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
.antidote
|
||||
.p10k.zsh
|
||||
.zcompdump
|
||||
.zsh_history
|
||||
zsh_plugins.zsh
|
25
.zshenv
25
.zshenv
|
@ -2,24 +2,29 @@
|
|||
#
|
||||
# .zshenv - Zsh environment file, loaded always.
|
||||
#
|
||||
# NOTE: .zshenv needs to live at ~/.zshenv, not in $ZDOTDIR!
|
||||
# NOTE: .zshenv needs to live at ~/.zshenv, not in $ZDOTDIR,
|
||||
# unless /etz/zsh/zshenv is not updated.
|
||||
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
export PATH="$HOME/.local/share/cargo/bin:$PATH"
|
||||
export PATH="$HOME/.local/share/juliaup/bin:$PATH"
|
||||
export XDG_STATE_HOME="$HOME/.local/state"
|
||||
export XDG_CONFIG_HOME="$HOME/.config"
|
||||
export XDG_DATA_HOME="$HOME/.local/share"
|
||||
export XDG_BIN_HOME="$HOME/.local/bin"
|
||||
export XDG_CACHE_HOME="$HOME/.cache"
|
||||
|
||||
export PATH="${XDG_BIN_HOME}:$PATH"
|
||||
export PATH="${XDG_DATA_HOME}/cargo/bin:$PATH"
|
||||
export PATH="${XDG_DATA_HOME}/juliaup/bin:$PATH"
|
||||
|
||||
export EDITOR="nvim"
|
||||
export TERMINAL="st"
|
||||
export BROWSER="librewolf"
|
||||
|
||||
export XDG_STATE_HOME="$HOME/.local/state"
|
||||
export XDG_CONFIG_HOME="$HOME/.config"
|
||||
export XDG_DATA_HOME="$HOME/.local/share"
|
||||
export XDG_CACHE_HOME="$HOME/.cache"
|
||||
|
||||
export ZDOTDIR="${XDG_CONFIG_HOME}/zsh"
|
||||
|
||||
export HISTFILE="$XDG_DATA_HOME/history"
|
||||
export HISTFILE="${ZDOTDIR}/.zsh_history"
|
||||
export HISTSIZE=50000
|
||||
export SAVEHIST=$HISTSIZE
|
||||
|
||||
export MANPAGER="nvim +Man! -"
|
||||
|
||||
export LESSHISTFILE="/dev/null"
|
||||
|
|
27
config/zsh/.zshrc
Normal file
27
config/zsh/.zshrc
Normal file
|
@ -0,0 +1,27 @@
|
|||
## Plugin manager
|
||||
|
||||
[ ! -d ${ZDOTDIR:-$HOME}/.antidote ] && git clone --depth=1 https://github.com/mattmc3/antidote.git ${ZDOTDIR:-$HOME}/.antidote
|
||||
|
||||
source ${ZDOTDIR:-$HOME}/.antidote/antidote.zsh
|
||||
antidote load ${ZDOTDIR:-$HOME}/zsh_plugins.txt
|
||||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.config/zsh/.p10k.zsh.
|
||||
[[ ! -f ~/.config/zsh/.p10k.zsh ]] || source ~/.config/zsh/.p10k.zsh
|
||||
|
||||
##
|
||||
|
||||
autoload -U compinit
|
||||
compinit -C
|
||||
zstyle ':completion:*' menu select
|
||||
|
||||
|
||||
setopt appendhistory
|
||||
setopt hist_ignore_all_dups
|
||||
|
||||
bindkey '^[[A' history-substring-search-up # or '\eOA'
|
||||
bindkey '^[[B' history-substring-search-down # or '\eOB'
|
||||
HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE=1
|
||||
|
||||
|
||||
alias lf='lfrun'
|
||||
alias ls='ls --color'
|
7
config/zsh/zsh_plugins.txt
Normal file
7
config/zsh/zsh_plugins.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
romkatv/powerlevel10k
|
||||
|
||||
zsh-users/zsh-autosuggestions
|
||||
zsh-users/zsh-syntax-highlighting
|
||||
zsh-users/zsh-history-substring-search
|
||||
|
||||
joshskidmore/zsh-fzf-history-search
|
12
install.sh
Executable file
12
install.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/zsh
|
||||
|
||||
BASEDIR=$(pwd)
|
||||
|
||||
source .zshenv
|
||||
|
||||
ln --force --symbolic $BASEDIR/.zshenv $HOME/.zshenv
|
||||
|
||||
mkdir -p "${XDG_CONFIG_HOME}"
|
||||
mkdir -p "${XDG_DATA_HOME}"
|
||||
|
||||
ln --force --symbolic --no-dereference $BASEDIR/config/zsh/ "${XDG_CONFIG_HOME}/zsh"
|
Loading…
Reference in a new issue