1
0
Fork 0

Various updates

- Use pure prompt for zsh by default
- Add autojump, autosuggestions for zsh
- Switch to dracula theme for vim and micro
This commit is contained in:
Alexander Schäferdiek 2023-12-12 23:08:52 +01:00
parent 4e688f3933
commit 7a75bcc46c
7 changed files with 88 additions and 9 deletions

View file

@ -1,5 +1,25 @@
# chezmoi dotfiles # chezmoi dotfiles
## Requirements
The following should be installed (package names for ArchLinux):
```shell
zsh
zsh-autosuggestions
zsh-completions
zsh-pure-prompt-git
zsh-syntax-highlighting
autojump
nano
nano-syntax-highlighting-git
vim
nano
micro
```
## Init
```shell ```shell
# init and clone on new machine # init and clone on new machine
chezmoi init --apply --verbose https://git.myservermanager.com/alexander.schaeferdiek/dotfiles-server.git chezmoi init --apply --verbose https://git.myservermanager.com/alexander.schaeferdiek/dotfiles-server.git

View file

@ -0,0 +1,5 @@
{
"Alt-/": "lua:comment.comment",
"CtrlUnderscore": "lua:comment.comment",
"F4": "command:jumptag"
}

View file

@ -0,0 +1,42 @@
color-link default "#F8F8F2,#282A36"
color-link comment "#6272A4"
color-link identifier "#50FA7B"
color-link identifier.class "#8BE9FD"
color-link identifier.var "#F8F8F2"
color-link constant "#BD93F9"
color-link constant.number "#F8F8F2"
color-link constant.string "#F1FA8C"
color-link symbol "#FF79C6"
color-link symbol.brackets "#F8F8F2"
color-link symbol.tag "#AE81FF"
color-link type "italic #8BE9FD"
color-link type.keyword "#FF79C6"
color-link special "#FF79C6"
color-link statement "#FF79C6"
color-link preproc "#FF79C6"
color-link underlined "#FF79C6"
color-link error "bold #FF5555"
color-link todo "bold #FF79C6"
color-link diff-added "#50FA7B"
color-link diff-modified "#FFB86C"
color-link diff-deleted "#FF5555"
color-link gutter-error "#FF5555"
color-link gutter-warning "#E6DB74"
color-link statusline "#282A36,#F8F8F2"
color-link tabbar "#282A36,#F8F8F2"
color-link indent-char "#6272A4"
color-link line-number "#6272A4"
color-link current-line-number "#F8F8F2"
color-link cursor-line "#44475A,#F8F8F2"
color-link color-column "#44475A"
color-link type.extended "default"

View file

@ -0,0 +1,3 @@
{
"colorscheme": "dracula"
}

View file

@ -33,8 +33,8 @@ call plug#begin('~/.vim/plugged')
" Initialize plugin system " Initialize plugin system
call plug#end() call plug#end()
colorscheme base16-atelier-forest "colorscheme base16-atelier-forest
"colorscheme dracula colorscheme dracula
if has('gui_running') if has('gui_running')
set go=m set go=m

View file

@ -1,2 +1,5 @@
# misc # misc
export EDITOR="vim" export EDITOR="vim"
# fzf theme (dracula)
export FZF_DEFAULT_OPTS='--color=fg:#f8f8f2,bg:#282a36,hl:#bd93f9 --color=fg+:#f8f8f2,bg+:#44475a,hl+:#bd93f9 --color=info:#ffb86c,prompt:#50fa7b,pointer:#ff79c6 --color=marker:#ff79c6,spinner:#ffb86c,header:#6272a4'

View file

@ -1,13 +1,9 @@
# This configuration makes use of zsh-syntax-highlighting.
# Some alias will call pre-defined applications.
# Ensure to install them if a command is not working.
#
# SETTINGS # SETTINGS
autoload -U compinit promptinit autoload -U compinit promptinit; promptinit
autoload -U colors && colors autoload -U colors && colors
compinit compinit
promptinit zstyle :prompt:pure:git:stash show yes
prompt walters prompt pure
zstyle ':completion:*' menu select zstyle ':completion:*' menu select
setopt completealiases setopt completealiases
setopt HIST_IGNORE_DUPS setopt HIST_IGNORE_DUPS
@ -116,3 +112,13 @@ if [ -f "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern) ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern)
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
fi fi
# AUTO SUGGESTIONS
if [ -f "/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" ]; then
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
fi
# AUTOJUMP
if [ -f "/usr/share/autojump/autojump.zsh" ]; then
source /usr/share/autojump/autojump.zsh
fi