Get zsh and neovim configurations from git
This commit is contained in:
parent
cc6e752c59
commit
8011081703
4 changed files with 15 additions and 96 deletions
|
@ -1,5 +0,0 @@
|
||||||
alias ls="ls --color"
|
|
||||||
alias vim=nvim
|
|
||||||
alias ssh='TERM="xterm-256color" ssh'
|
|
||||||
alias -s pdf="zathura"
|
|
||||||
alias -s jpg="imv-wayland"
|
|
|
@ -1,22 +0,0 @@
|
||||||
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
|
|
|
@ -1,61 +0,0 @@
|
||||||
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
|
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
# Keymap
|
|
||||||
bindkey '^[[A' history-substring-search-up
|
|
||||||
bindkey '^[[B' history-substring-search-down
|
|
||||||
|
|
||||||
# dirscolors
|
|
||||||
if [ -f ~/.dir_colors ]; then
|
|
||||||
eval `dircolors ~/.dir_colors`
|
|
||||||
fi
|
|
||||||
|
|
||||||
# imports Aliases
|
|
||||||
if [ -f "${XDG_CONFIG_DIR:-"${HOME}/.config"}/zsh/alias" ]; then
|
|
||||||
source "${XDG_CONFIG_DIR:-"${HOME}/.config"}/zsh/alias"
|
|
||||||
fi
|
|
23
playbook.yml
23
playbook.yml
|
@ -48,14 +48,21 @@
|
||||||
state: present
|
state: present
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Copy ZSH files
|
- name: Clone my zsh repository
|
||||||
ansible.builtin.copy:
|
ansible.builtin.git:
|
||||||
src: '{{ item }}'
|
repo: ssh://git@git.epha.se:24422/ephase/zsh_config.git
|
||||||
dest: '{{ ansible_user_dir }}'
|
dest: '{{ ansible_user_dir }}/.config/zsh'
|
||||||
mode: '0640'
|
|
||||||
loop:
|
- name: Symlink .zshenv to ~
|
||||||
- zsh/.zshrc
|
ansible.builtin.file:
|
||||||
- zsh/.zprofile
|
src: '{{ ansible_user_dir }}/.config/zsh/.zshenv'
|
||||||
|
dest: '{{ ansible_user_dir }}/.zshenv'
|
||||||
|
state: link
|
||||||
|
|
||||||
|
- name: Clone my neovim repository
|
||||||
|
ansible.builtin.git:
|
||||||
|
repo: ssh://git@git.epha.se:24422/ephase/nvim_config.git
|
||||||
|
dest: '{{ ansible_user_dir }}/.config/nvim'
|
||||||
|
|
||||||
- name: Launch Sway related roles
|
- name: Launch Sway related roles
|
||||||
hosts: all
|
hosts: all
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue