zsh cleaning

This commit is contained in:
Bartek Stalewski 2020-10-05 12:14:33 +02:00
parent c47ac7a2ab
commit 34ad2dac1d
2 changed files with 18 additions and 16 deletions

View File

@ -4,14 +4,14 @@
rm -rf ~/.bash* ~/.profile
rm -rf ~/.dotfiles
# repo
# repo + preparations
git clone https://github.com/ftpd/dotfiles.git ~/.dotfiles
mkdir -p ~/.config
## vim
# cleaning
rm -rf ~/.vim*
rm -rf ~/.vim* ~/.config/nvim
# installing
mkdir -p ~/.config
ln -sf ~/.dotfiles/vim ~/.config/nvim
## .gitignore
@ -35,12 +35,12 @@ ln -sf ~/.dotfiles/conf/tmux.conf ~/.tmux.conf
## zsh
# cleaning
rm -rf ~/.zsh ~/.zshrc
mkdir -p ~/.zsh/plugins ~/.zsh/themes
rm -rf ~/.zsh* ~/.config/zsh*
mkdir -p ~/.config/zsh/caches ~/.config/zsh/plugins ~/.config/zsh/themes
# dependiences
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.zsh/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/plugins/zsh-syntax-highlighting
git clone https://github.com/romkatv/powerlevel10k.git ~/.zsh/themes/powerlevel10k
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.config/zsh/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.config/zsh/plugins/zsh-syntax-highlighting
git clone https://github.com/romkatv/powerlevel10k.git ~/.config/zsh/themes/powerlevel10k
# installing
ln -sf ~/.dotfiles/zsh/zshrc ~/.zshrc
touch ~/.zshrc.local

View File

@ -1,10 +1,12 @@
autoload -U compinit && compinit
bindkey -e
autoload -U compinit && compinit -d ~/.zsh/caches/zcompdump
autoload -U promptinit && promptinit
bindkey -e
export CLICOLOR=1
alias ll='ls -lh'
export HISTSIZE=10000
SAVEHIST=$HISTSIZE
HISTFILE=~/.history
setopt inc_append_history
setopt share_history
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_COMMAND='fd -H'
@ -18,9 +20,9 @@ _fzf_compgen_dir() {
fd -H --type d . "$1"
}
source ~/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.zsh/themes/powerlevel10k/powerlevel10k.zsh-theme
source ~/.config/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.config/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.config/zsh/themes/powerlevel10k/powerlevel10k.zsh-theme
source ~/.dotfiles/zsh/p10k.zsh
[ -e ~/.zshrc.local ] && source ~/.zshrc.local