forked from Gentleman-Programming/Gentleman.Dots
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
55 lines (41 loc) · 1.34 KB
/
.zshrc
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
# Si la sesión es interactiva
if [[ $- == *i* ]]; then
# Commands to run in interactive sessions can go here
fi
if [[ "$(uname)" == "Darwin" ]]; then
# macOS
BREW_BIN="/opt/homebrew/bin"
else
# Linux
BREW_BIN="/home/linuxbrew/.linuxbrew/bin"
fi
# Usar la variable BREW_BIN donde se necesite
eval "$($BREW_BIN/brew shellenv)"
source $(dirname $BREW_BIN)/share/zsh-autocomplete/zsh-autocomplete.plugin.zsh
source $(dirname $BREW_BIN)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source $(dirname $BREW_BIN)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
export PROJECT_PATHS="/home/alanbuscaglia/work"
export FZF_DEFAULT_COMMAND="fd --hidden --strip-cwd-prefix --exclude .git"
export FZF_DEFAULT_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_ALT_COMMAND="fd --type=d --hidden --strip-cwd-prefix --exlude .git"
WM_VAR="/$TMUX"
# change with ZELLIJ
WM_CMD="tmux"
# change with zellij
if [[ $- == *i* ]] && [[ -z "${WM_VAR#/}" ]]; then
exec $WM_CMD
fi
# alias
alias fzfbat='fzf --preview="bat --theme=gruvbox-dark --color=always {}"'
alias fzfnvim='nvim $(fzf --preview="bat --theme=gruvbox-dark --color=always {}")'
#plugins
plugins=(
pj
command-not-found
)
source $ZSH/oh-my-zsh.sh
eval "$(fzf --zsh)"
# Inicializar Starship para zsh
eval "$(starship init zsh)"