mirror of
https://github.com/Lissy93/dotfiles.git
synced 2025-01-10 06:08:14 +01:00
🚧 WIP
This commit is contained in:
parent
d7f179ea07
commit
dd833e1ce5
1675
.config/zsh/.p10k.zsh
Normal file
1675
.config/zsh/.p10k.zsh
Normal file
File diff suppressed because it is too large
Load Diff
@ -15,6 +15,8 @@ export BROWSER="firefox"
|
||||
export PAGER="less"
|
||||
|
||||
## Respect XDG directories
|
||||
export ADOTDIR="${XDG_DATA_HOME}/zsh/antigen"
|
||||
export ANTIGEN_LOG="${XDG_CACHE_HOME}/zsh/antigen"
|
||||
export CARGO_HOME="${XDG_DATA_HOME}/cargo"
|
||||
export DOCKER_CONFIG="${XDG_CONFIG_HOME}/docker"
|
||||
export KDEHOME="${XDG_CONFIG_HOME}/kde"
|
||||
@ -29,3 +31,10 @@ export XSERVERRC="${XDG_CONFIG_HOME}/X11/xserverrc"
|
||||
export ZDOTDIR="${XDG_CONFIG_HOME}/zsh"
|
||||
export ZLIB="${ZDOTDIR}/lib"
|
||||
|
||||
# ZSH History
|
||||
export HISTFILE="${XDG_CACHE_HOME}/zsh/.zsh_history"
|
||||
export HISTSIZE=10000
|
||||
export SAVEHIST=10000
|
||||
setopt appendhistory
|
||||
|
||||
# source $XDG_CONFIG_HOME/zsh/.zshrc
|
@ -0,0 +1,19 @@
|
||||
# Enable 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
|
||||
|
||||
zsh_dir=${XDG_CONFIG_HOME:-$HOME/.config}/zsh
|
||||
|
||||
# Setup Antigen bundle manager
|
||||
source ${zsh_dir}/helpers/setup-antigen.zsh
|
||||
|
||||
# Import ZSH plugins
|
||||
if type "antigen" > /dev/null; then
|
||||
source ${zsh_dir}/helpers/import-plugins.zsh
|
||||
else
|
||||
echo "Antigen not installed"
|
||||
fi
|
||||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.config/zsh/.p10k.zsh.
|
||||
[[ ! -f ~/.config/zsh/.p10k.zsh ]] || source ~/.config/zsh/.p10k.zsh
|
0
.config/zsh/aliases/git.zsh
Normal file
0
.config/zsh/aliases/git.zsh
Normal file
14
.config/zsh/helpers/import-plugins.zsh
Normal file
14
.config/zsh/helpers/import-plugins.zsh
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
|
||||
# Fish-like inline auto-suggestions as you type
|
||||
antigen bundle zsh-users/zsh-autosuggestions
|
||||
|
||||
# Tool for finding aliases of a command
|
||||
antigen bundle alias-finder
|
||||
|
||||
# Syntax highlighting for output
|
||||
antigen bundle zsh-users/zsh-syntax-highlighting
|
||||
|
||||
antigen theme romkatv/powerlevel10k
|
||||
|
||||
antigen apply
|
27
.config/zsh/helpers/setup-antigen.zsh
Executable file
27
.config/zsh/helpers/setup-antigen.zsh
Executable file
@ -0,0 +1,27 @@
|
||||
|
||||
|
||||
zsh_dir=${XDG_CONFIG_HOME:-$HOME/.config}/zsh
|
||||
antigen_dir=${ADOTDIR:-$XDG_DATA_HOME/zsh/antigen}
|
||||
|
||||
typeset -a ANTIGEN_CHECK_FILES=(${zsh_dir}/.zshrc ${antigen_dir}/antigen.zsh)
|
||||
|
||||
export ANTIGEN_AUTO_CONFIG=false
|
||||
|
||||
# Import angigen if present, or prompt to install if missing
|
||||
if [[ -f $antigen_dir/antigen.zsh ]]; then
|
||||
source $antigen_dir/antigen.zsh
|
||||
else
|
||||
if read -q "choice?Would you like to install Antigen now? (y/N)"; then
|
||||
echo
|
||||
mkdir -p $antigen_dir
|
||||
curl -L git.io/antigen > $antigen_dir/antigen.zsh
|
||||
source $antigen_dir/antigen.zsh
|
||||
fi
|
||||
fi
|
||||
|
||||
# Create (if needed), then set path to antigen cache directory
|
||||
# antigen_cache_dir=${XDG_CACHE_HOME:-$HOME/.cache}/zsh/antigen
|
||||
# if [ ! -d $antigen_cache_dir ]; then
|
||||
# mkdir -p $antigen_cache_dir
|
||||
# fi
|
||||
# export ANTIGEN_CACHE=$antigen_cache_dir
|
Loading…
Reference in New Issue
Block a user