Move zsh config files
This commit is contained in:
parent
7e09c33898
commit
bab1cfeb43
67
general/.config/zsh/.zshrc
Normal file
67
general/.config/zsh/.zshrc
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
|
||||||
|
# Initialize p10k if present
|
||||||
|
# if [[ -f "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||||
|
# source "${XDG_CACHE_HOME}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
|
# else
|
||||||
|
# ZSH_THEME="robbyrussell"
|
||||||
|
# fi
|
||||||
|
|
||||||
|
# Path to your oh-my-zsh installation.
|
||||||
|
export ZSH="$XDG_CONFIG_HOME/zsh/oh-my-zsh"
|
||||||
|
# export ZSH="~/.oh-my-zsh"
|
||||||
|
|
||||||
|
### ZPLUG ###
|
||||||
|
|
||||||
|
# Install zplug through AUR
|
||||||
|
source /usr/share/zsh/scripts/zplug/init.zsh
|
||||||
|
|
||||||
|
zplug "MichaelAquilina/zsh-you-should-use"
|
||||||
|
zplug "zsh-users/zsh-completions"
|
||||||
|
zplug "zsh-users/zsh-autosuggestions"
|
||||||
|
zplug "supercrabtree/k"
|
||||||
|
zplug "romkatv/powerlevel10k", as:theme, depth:1
|
||||||
|
zplug "wting/autojump", \
|
||||||
|
use:"bin/autojump.zsh"
|
||||||
|
|
||||||
|
# TODO: figure out how to use redrawhook syntax highlight with autosuggestions
|
||||||
|
# zplug "zsh-users/zsh-syntax-highlighting", \
|
||||||
|
# at:"feature/redrawhook"
|
||||||
|
|
||||||
|
if ! zplug check --verbose; then
|
||||||
|
printf "Install? [y/N]: "
|
||||||
|
if read -q; then
|
||||||
|
echo; zplug install
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
zplug load
|
||||||
|
|
||||||
|
export ZSH_THEME="powerlevel10k/powerlevel10k"
|
||||||
|
|
||||||
|
plugins=(
|
||||||
|
git
|
||||||
|
vscode
|
||||||
|
vi-mode
|
||||||
|
systemd
|
||||||
|
# npm
|
||||||
|
# npx
|
||||||
|
node
|
||||||
|
flutter
|
||||||
|
archlinux
|
||||||
|
colorize
|
||||||
|
docker
|
||||||
|
docker-compose
|
||||||
|
pip
|
||||||
|
python
|
||||||
|
)
|
||||||
|
|
||||||
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
|
source ~/.aliases
|
||||||
|
|
||||||
|
export HISTFILE="$ZDOTDIR/.zsh_history"
|
||||||
|
|
||||||
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||||
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
|
|
||||||
|
[[ ! -f !/.zshrc.local ]] || source ~/.zshrc.local
|
3
general/.gitignore
vendored
3
general/.gitignore
vendored
@ -2,6 +2,9 @@
|
|||||||
!.config/qutebrowser/config.py
|
!.config/qutebrowser/config.py
|
||||||
!.config/qutebrowser/search.py
|
!.config/qutebrowser/search.py
|
||||||
|
|
||||||
|
.config/zsh/.zcompdump
|
||||||
|
.config/zsh/.zsh_history
|
||||||
|
|
||||||
.emacs.d/*
|
.emacs.d/*
|
||||||
!.emacs.d/config.org
|
!.emacs.d/config.org
|
||||||
!.emacs.d/logo.svg
|
!.emacs.d/logo.svg
|
||||||
|
1
general/.zshenv
Normal file
1
general/.zshenv
Normal file
@ -0,0 +1 @@
|
|||||||
|
ZDOTDIR="$XDG_CONFIG_HOME/zsh"
|
@ -1,37 +0,0 @@
|
|||||||
|
|
||||||
# Initialize p10k if present
|
|
||||||
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
|
||||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
|
||||||
ZSH_THEME="powerlevel10k/powerlevel10k"
|
|
||||||
else
|
|
||||||
ZSH_THEME="robbyrussell"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Path to your oh-my-zsh installation.
|
|
||||||
export ZSH="$HOME/.oh-my-zsh"
|
|
||||||
|
|
||||||
source ~/.aliases
|
|
||||||
|
|
||||||
plugins=(
|
|
||||||
git
|
|
||||||
vscode
|
|
||||||
vi-mode
|
|
||||||
systemd
|
|
||||||
npm
|
|
||||||
npx
|
|
||||||
node
|
|
||||||
flutter
|
|
||||||
archlinux
|
|
||||||
colorize
|
|
||||||
docker
|
|
||||||
docker-compose
|
|
||||||
pip
|
|
||||||
python
|
|
||||||
)
|
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
|
||||||
|
|
||||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
|
||||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
|
||||||
|
|
||||||
[[ ! -f !/.zshrc.local ]] || source ~/.zshrc.local
|
|
Loading…
Reference in New Issue
Block a user