-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc-personal
32 lines (24 loc) · 1.15 KB
/
.zshrc-personal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#Vi-mode
bindkey -v
#Neovim for reading your man pages
#export MANPAGER='nvim +Man!'
#export MANWIDTH=999
#moving your personal files and folders from /personal/1/ to ~
alias personal1='cp -Rf /personal/1/* ~'
#Fzf key-bindings and completion
. /usr/share/fzf/key-bindings.zsh
. /usr/share/fzf/completion.zsh
#Fzf using Ripgrep including hidden files and symbolic links
#export FZF_DEFAULT_COMMAND='rg --files --hidden --follow --no-ignore-vcs'
#export FZF_DEFAULT_OPTS=''
#Fzf using fd including hidden files and symbolic links
export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git'
export FZF_DEFAULT_OPTS='--height 96% --reverse --preview "bat {}"'
#export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_CTRL_T_COMMAND='fd --type f --hidden --follow --exclude .git'
export FZF_CTRL_T_OPTS="--preview 'bat --color=always --line-range 50 {}'"
export FZF_ALT_C_COMMAND='fd --type d . --hidden'
export FZF_ALT_C_OPTS="--preview 'tree -C {} | head -50'"
# dotfile (config) git repo - "figgit"
zstyle ':completion:*:*:git:*' user-commands figgit:'figgit dotfile git alias'
alias figgit='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'