Skip to content

Commit

Permalink
add fzf-git.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
fynnfluegge committed Jun 8, 2024
1 parent 44a6c99 commit 928c535
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi

KEYTIMEOUT=100

export ZSH="$HOME/.zsh"
export ZSH_CUSTOM="$ZSH/custom"
Expand All @@ -27,7 +28,8 @@ if [[ -f $P10K_PATH ]]; then
ZSH_THEME="powerlevel10k/powerlevel10k"
else
# Enable starship shell
eval "$(starship init zsh)"
# eval "$(starship init zsh)"
ZSH_THEME="awesomepanda"
fi

typeset -A ZSH_HIGHLIGHT_STYLES
Expand Down Expand Up @@ -66,6 +68,7 @@ source $ZSH/oh-my-zsh.sh
# Enable fzf shell
[ -f $HOME/.fzf.zsh ] && source $HOME/.fzf.zsh
export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --border'
[ -f $HOME/.fzf/fzf-git.sh/fzf-git.sh ] && source $HOME/.fzf/fzf-git.sh/fzf-git.sh

# Enable zoxide shell
eval "$(zoxide init zsh)"
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ RUN mkdir -p $HOME/.local/bin

# ------------------- Install fzf ------------------- #
RUN git clone --depth 1 https://github.com/junegunn/fzf.git $HOME/.fzf && $HOME/.fzf/install
# Download fzf-git
RUN cd $HOME/.fzf && git clone https://github.com/junegunn/fzf-git.sh

# create a symbolic link to bat and fd
RUN ln -s /usr/bin/batcat $HOME/.local/bin/bat
Expand Down

0 comments on commit 928c535

Please sign in to comment.