Compare commits
5 Commits
69d8fc7dee
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
49ee64f030
|
|||
|
9451fb9a3a
|
|||
|
6f2b75e9f4
|
|||
|
66e8c8735f
|
|||
|
2a397c68df
|
@@ -45,6 +45,11 @@ path=(
|
|||||||
/usr/local/texlive/2018/bin/x86_64-darwin
|
/usr/local/texlive/2018/bin/x86_64-darwin
|
||||||
)
|
)
|
||||||
|
|
||||||
|
cdpath=(
|
||||||
|
$HOME/code
|
||||||
|
$HOME/src
|
||||||
|
)
|
||||||
|
|
||||||
plugins=(
|
plugins=(
|
||||||
archlinux
|
archlinux
|
||||||
asdf
|
asdf
|
||||||
@@ -89,7 +94,7 @@ fi
|
|||||||
fpath=(/usr/local/share/zsh/site-functions $fpath)
|
fpath=(/usr/local/share/zsh/site-functions $fpath)
|
||||||
fpath=("${HOMEBREW_PREFIX}/share/zsh/site-functions" $fpath)
|
fpath=("${HOMEBREW_PREFIX}/share/zsh/site-functions" $fpath)
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
#source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
unalias gb &>/dev/null
|
unalias gb &>/dev/null
|
||||||
|
|
||||||
@@ -104,13 +109,13 @@ GPG_TTY="$(tty)"
|
|||||||
export GPG_TTY
|
export GPG_TTY
|
||||||
|
|
||||||
# The completion for aws is not compatible with $fpath :scream_cat:
|
# The completion for aws is not compatible with $fpath :scream_cat:
|
||||||
if [[ -f /usr/local/share/zsh/site-functions/_aws ]]; then
|
#if [[ -f /usr/local/share/zsh/site-functions/_aws ]]; then
|
||||||
source /usr/local/share/zsh/site-functions/_aws
|
# source /usr/local/share/zsh/site-functions/_aws
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
if [[ -f ~/.local/bin/aws_zsh_completer.sh ]]; then
|
#if [[ -f ~/.local/bin/aws_zsh_completer.sh ]]; then
|
||||||
source ~/.local/bin/aws_zsh_completer.sh
|
# source ~/.local/bin/aws_zsh_completer.sh
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
if command -v xdg-open &>/dev/null; then
|
if command -v xdg-open &>/dev/null; then
|
||||||
alias open=xdg-open
|
alias open=xdg-open
|
||||||
@@ -134,7 +139,6 @@ if psql --version &>/dev/null; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
unsetopt correct_all
|
unsetopt correct_all
|
||||||
bindkey '^R' history-incremental-search-backward
|
|
||||||
|
|
||||||
__maybesource() {
|
__maybesource() {
|
||||||
if [[ -f "${1}" ]]; then
|
if [[ -f "${1}" ]]; then
|
||||||
@@ -154,6 +158,12 @@ brew() {
|
|||||||
brew "${@}"
|
brew "${@}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
direnv() {
|
||||||
|
unset -f direnv
|
||||||
|
eval "$(direnv hook zsh)"
|
||||||
|
direnv "${@}"
|
||||||
|
}
|
||||||
|
|
||||||
nvm() {
|
nvm() {
|
||||||
unset -f nvm
|
unset -f nvm
|
||||||
__maybesource /usr/share/nvm/init-nvm.sh silent
|
__maybesource /usr/share/nvm/init-nvm.sh silent
|
||||||
@@ -228,18 +238,20 @@ print(base64.b64encode(secrets.token_bytes(${nbytes} * 2)).decode(), end="")
|
|||||||
EOPYTHON
|
EOPYTHON
|
||||||
}
|
}
|
||||||
|
|
||||||
cdpath=(
|
if fzf --version &>/dev/null; then
|
||||||
$HOME/code
|
source <(fzf --zsh)
|
||||||
$HOME/src
|
else
|
||||||
)
|
bindkey '^R' history-incremental-search-backward
|
||||||
|
fi
|
||||||
|
|
||||||
__maybesource ~/.cargo/env
|
|
||||||
__maybesource ~/.zshenv
|
__maybesource ~/.zshenv
|
||||||
|
__maybesource ~/.cargo/env
|
||||||
__maybesource ~/google-cloud-sdk/path.zsh.inc
|
__maybesource ~/google-cloud-sdk/path.zsh.inc
|
||||||
__maybesource ~/google-cloud-sdk/completion.zsh.inc
|
__maybesource ~/google-cloud-sdk/completion.zsh.inc
|
||||||
__maybesource ~/.kiex/scripts/kiex
|
__maybesource ~/.kiex/scripts/kiex
|
||||||
__maybesource ~/.config/tabtab/__tabtab.zsh
|
__maybesource ~/.config/tabtab/__tabtab.zsh
|
||||||
__maybesource ~/.sdkman/bin/sdkman-init.sh
|
__maybesource ~/.sdkman/bin/sdkman-init.sh
|
||||||
|
__maybesource /etc/profile.d/fzf.zsh
|
||||||
|
|
||||||
autoload -Uz compinit
|
autoload -Uz compinit
|
||||||
if [[ -n ~/.zcompdump(#qNmh-24) ]]; then
|
if [[ -n ~/.zcompdump(#qNmh-24) ]]; then
|
||||||
@@ -250,7 +262,15 @@ fi
|
|||||||
|
|
||||||
autoload -U promptinit
|
autoload -U promptinit
|
||||||
promptinit
|
promptinit
|
||||||
prompt pure
|
if prompt -l | grep -q pure; then
|
||||||
|
prompt pure
|
||||||
|
else
|
||||||
|
prompt fade red
|
||||||
|
fi
|
||||||
|
|
||||||
|
zstyle :prompt:pure:path color '#FFB86C'
|
||||||
|
zstyle :prompt:pure:prompt color '#50FA7B'
|
||||||
|
zstyle :prompt:pure:git:branch color '#BD93F9'
|
||||||
|
|
||||||
compdef _symfony_complete composer
|
compdef _symfony_complete composer
|
||||||
compdef _symfony_complete dep
|
compdef _symfony_complete dep
|
||||||
|
|||||||
Reference in New Issue
Block a user