config: Clean up zshrc - remove git plugin

This commit is contained in:
xerus2000 2020-10-07 21:46:34 +02:00
parent c26b5c73e7
commit bf9897af35
4 changed files with 23 additions and 7 deletions

View File

@ -95,8 +95,9 @@
sm = !git submodule init && git submodule update sm = !git submodule init && git submodule update
# yadm # yadm
add-git = !git add $XDG_CONFIG_HOME/git/config $CONFIG_SHELLS/git add-git = !yadm add $XDG_CONFIG_HOME/git/config $CONFIG_SHELLS/git
add-vim = !git add $XDG_CONFIG_HOME/nvim/init* add-vim = !yadm add $XDG_CONFIG_HOME/nvim/init*
add-shell = !yadm add $CONFIG_SHELLS
[filter "lfs"] [filter "lfs"]
clean = git-lfs clean -- %f clean = git-lfs clean -- %f

View File

@ -1,4 +1,5 @@
# Tools # Tools
alias g="git"
alias bfg="java -jar $HOME/daten/applications/bfg-1.13.0.jar" alias bfg="java -jar $HOME/daten/applications/bfg-1.13.0.jar"
alias magit='nvim -c MagitOnly' alias magit='nvim -c MagitOnly'

View File

@ -8,9 +8,9 @@ fi
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.config/zsh/.zshrc. # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.config/zsh/.zshrc.
# Initialization code that may require console input (password prompts, [y/n] # Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below. # confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then #if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" # source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi #fi
export PATH=$HOME/.local/bin:$PATH export PATH=$HOME/.local/bin:$PATH
@ -35,7 +35,8 @@ DISABLE_UNTRACKED_FILES_DIRTY="true" # DOn't mark untracked files as dirty - spe
# Plugins can be found in $ZSH/plugins/ # Plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/ # Custom plugins may be added to $ZSH_CUSTOM/plugins/
plugins=( plugins=(
git #git
gitfast
git-auto-fetch git-auto-fetch
z z
fast-syntax-highlighting fast-syntax-highlighting
@ -187,4 +188,4 @@ export NVM_DIR="$HOME/.nvm"
# To customize prompt, run `p10k configure` or edit .p10k.zsh. # To customize prompt, run `p10k configure` or edit .p10k.zsh.
[[ ! -f $CONFIG_ZSH/.p10k.zsh ]] || source $CONFIG_ZSH/.p10k.zsh [[ ! -f $CONFIG_ZSH/.p10k.zsh ]] || source $CONFIG_ZSH/.p10k.zsh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh [ -f $XDG_DATA_HOME/shell/.fzf.zsh ] && source $XDG_DATA_HOME/shell/.fzf.zsh

View File

@ -0,0 +1,13 @@
# Setup fzf
# ---------
if [[ ! "$PATH" == */opt/fzf/bin* ]]; then
export PATH="${PATH:+${PATH}:}/opt/fzf/bin"
fi
# Auto-completion
# ---------------
[[ $- == *i* ]] && source "/opt/fzf/shell/completion.zsh" 2> /dev/null
# Key bindings
# ------------
source "/opt/fzf/shell/key-bindings.zsh"