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 ~/.bash* ~/.profile
rm -rf ~/.dotfiles rm -rf ~/.dotfiles
# repo # repo + preparations
git clone https://github.com/ftpd/dotfiles.git ~/.dotfiles git clone https://github.com/ftpd/dotfiles.git ~/.dotfiles
mkdir -p ~/.config
## vim ## vim
# cleaning # cleaning
rm -rf ~/.vim* rm -rf ~/.vim* ~/.config/nvim
# installing # installing
mkdir -p ~/.config
ln -sf ~/.dotfiles/vim ~/.config/nvim ln -sf ~/.dotfiles/vim ~/.config/nvim
## .gitignore ## .gitignore
@ -35,12 +35,12 @@ ln -sf ~/.dotfiles/conf/tmux.conf ~/.tmux.conf
## zsh ## zsh
# cleaning # cleaning
rm -rf ~/.zsh ~/.zshrc rm -rf ~/.zsh* ~/.config/zsh*
mkdir -p ~/.zsh/plugins ~/.zsh/themes mkdir -p ~/.config/zsh/caches ~/.config/zsh/plugins ~/.config/zsh/themes
# dependiences # dependiences
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.zsh/plugins/zsh-autosuggestions 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 ~/.zsh/plugins/zsh-syntax-highlighting 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 ~/.zsh/themes/powerlevel10k git clone https://github.com/romkatv/powerlevel10k.git ~/.config/zsh/themes/powerlevel10k
# installing # installing
ln -sf ~/.dotfiles/zsh/zshrc ~/.zshrc ln -sf ~/.dotfiles/zsh/zshrc ~/.zshrc
touch ~/.zshrc.local 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 autoload -U promptinit && promptinit
bindkey -e export HISTSIZE=10000
SAVEHIST=$HISTSIZE
export CLICOLOR=1 HISTFILE=~/.history
alias ll='ls -lh' setopt inc_append_history
setopt share_history
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_COMMAND='fd -H' export FZF_DEFAULT_COMMAND='fd -H'
@ -18,9 +20,9 @@ _fzf_compgen_dir() {
fd -H --type d . "$1" fd -H --type d . "$1"
} }
source ~/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source ~/.config/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh source ~/.config/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.zsh/themes/powerlevel10k/powerlevel10k.zsh-theme source ~/.config/zsh/themes/powerlevel10k/powerlevel10k.zsh-theme
source ~/.dotfiles/zsh/p10k.zsh source ~/.dotfiles/zsh/p10k.zsh
[ -e ~/.zshrc.local ] && source ~/.zshrc.local [ -e ~/.zshrc.local ] && source ~/.zshrc.local