commit ab19d3a1e5ba4775b840837fbbdcf88da8c23b93 Author: Yorick Barbanneauwq Date: Thu Mar 16 01:05:06 2023 +0100 First commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dea2d4f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.zcompdump diff --git a/.zprofile b/.zprofile new file mode 100644 index 0000000..94b829e --- /dev/null +++ b/.zprofile @@ -0,0 +1,22 @@ +for file in ~/.config/environment.d/*.conf +do + while read -r line + do + varname=${line%=*} + value=${${(e)line#*=}//\"} + export $varname="${value}" + done < $file +done + +#notmutch +export NOTMUCH_CONFIG="${HOME}/.config/notmuch/config" +export PATH=~/.local/bin:$PATH +unset DEBUGINFOD_URLS +if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then + export QT_QPA_PLATFORM="wayland-egl" + export QT_WAYLAND_DISABLE_WINDOWDECORATION=1 + export MOZ_ENABLE_WAYLAND=1 + export QT_QPA_PLATFORMTHEME="gtk3" + export NO_AT_BRIDGE=1 + exec ~/.local/bin/sway.sh +fi diff --git a/.zshrc b/.zshrc new file mode 100644 index 0000000..adb34ff --- /dev/null +++ b/.zshrc @@ -0,0 +1,40 @@ +# Install Zinit +ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git" +[ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)" +[ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME" +source "${ZINIT_HOME}/zinit.zsh" +autoload -Uz _zinit +(( ${+_comps} )) && _comps[zinit]=_zinit + + +zinit ice pick"async.sh" src"scripts/base16-default-dark.sh" +zinit load "chriskempson/base16-shell" + +zinit ice wait"1a" lucid +zinit light "zdharma/fast-syntax-highlighting" + +# Some completions +zinit ice wait"0" blockf lucid +zinit load "zsh-users/zsh-completions" + +# Apply Pure theme +zinit ice pick"async.zsh" src"pure.zsh" +zinit light "sindresorhus/pure" + +#Search +zinit light "zdharma/history-search-multi-word" +zinit light "zsh-users/zsh-history-substring-search" + +autoload -Uz compinit && compinit +zinit cdreplay -q + +# dirscolors +if [ -f ~/.dir_colors ]; then + eval `dircolors ~/.dir_colors` +fi + +# imports Aliases +for file in ${XDG_CONFIG_DIR:-"${HOME}/.config"}/zsh/includes/* +do + source ${file} +done diff --git a/includes/10.options.zsh b/includes/10.options.zsh new file mode 100644 index 0000000..24927f1 --- /dev/null +++ b/includes/10.options.zsh @@ -0,0 +1,17 @@ +SAVEHIST=10000 +HISTSIZE=10000 +HISTFILE="$HOME/.local/share/zsh/zhistory" + +setopt EXTENDED_HISTORY +setopt APPEND_HISTORY +setopt HIST_FIND_NO_DUPS +setopt HIST_EXPIRE_DUPS_FIRST +setopt HIST_IGNORE_SPACE +setopt HIST_VERIFY +setopt SHARE_HISTORY +setopt HIST_IGNORE_DUPS +setopt INC_APPEND_HISTORY +setopt HIST_REDUCE_BLANKS + +# Activate extended gobbing +setopt extended_glob diff --git a/includes/20.plugins.zsh b/includes/20.plugins.zsh new file mode 100644 index 0000000..ab9ab68 --- /dev/null +++ b/includes/20.plugins.zsh @@ -0,0 +1,28 @@ +# Install Zinit +ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git" +[ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)" +[ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME" +source "${ZINIT_HOME}/zinit.zsh" +autoload -Uz _zinit +(( ${+_comps} )) && _comps[zinit]=_zinit + +zinit ice pick"async.sh" src"scripts/base16-default-dark.sh" +zinit load "chriskempson/base16-shell" + +zinit ice wait"1a" lucid +zinit light "zdharma/fast-syntax-highlighting" + +# Some completions +zinit ice wait"0" blockf lucid +zinit load "zsh-users/zsh-completions" + +# Apply Pure theme +zinit ice pick"async.zsh" src"pure.zsh" +zinit light "sindresorhus/pure" + +#Search +zinit light "zdharma/history-search-multi-word" +zinit light "zsh-users/zsh-history-substring-search" + +autoload -Uz compinit && compinit +zinit cdreplay -q diff --git a/includes/30.keymap.zsh b/includes/30.keymap.zsh new file mode 100644 index 0000000..71f6c6b --- /dev/null +++ b/includes/30.keymap.zsh @@ -0,0 +1,2 @@ +bindkey "${terminfo[kcuu1]}" history-substring-search-up +bindkey "${terminfo[kcud1]}" history-substring-search-down diff --git a/includes/90.alias.zsh b/includes/90.alias.zsh new file mode 100644 index 0000000..9f342f7 --- /dev/null +++ b/includes/90.alias.zsh @@ -0,0 +1,5 @@ +alias ls="ls --color" +alias vim=nvim +alias ssh='TERM="xterm-256color" ssh' +alias -s pdf="zathura" +alias -s jpg="imv-wayland"