forked from ytalor/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
79 lines (60 loc) · 2.16 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# 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
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
export ZSH="$HOME/.oh-my-zsh"
# Histórico:
export HISTFILE=${HOME}/.zsh_history
export HISTSIZE=5000
export SAVEHIST=5000
export HISTTIMEFORMAT="%d/%m/%y %T "
# Display red dots while waiting for completion
COMPLETION_WAITING_DOTS="true"
plugins=(
aws
git
zsh-autosuggestions
zsh-syntax-highlighting
bgnotify
docker
docker-compose
)
# autoload -U compinit && compinit
autoload bashcompinit
bashcompinit
alias qfind="find . -name "
alias hh="history"
alias ll="ls -plaht"
alias mv="mv -v"
alias tailf="tail -f -n 500"
alias psqll="psql -h localhost -U postgres"
alias codepy="code --extensions-dir ~/workspace/my/code_profiles/python/exts --user-data-dir ~/workspace/my/code_profiles/python/data"
function gam() { "$HOME/bin/gam/gam" "$@" ; }
source $ZSH/oh-my-zsh.sh
## BINDINGS
bindkey -s '^[OP' '/Users/urias/workspace/casamagalhaes/infratools ^M'
GREEN="%{$fg_bold[green]%}"
YELLOW="%{$fg_bold[yellow]%}"
CYAN="%{$fg_bold[cyan]%}"
RED="%{$fg_bold[red]%}"
RESET="%{$reset_color%}"
PROMPT='$GREEN 👨🏼💻 $YELLOW%c $(git_prompt_info) $RESET'
# ZSH_THEME="agnosternewline"
ZSH_THEME="dracula"
ZSH_THEME_GIT_PROMPT_PREFIX=" $CYAN"
ZSH_THEME_GIT_PROMPT_SUFFIX=""
ZSH_THEME_GIT_PROMPT_DIRTY=" $RED⦿"
ZSH_THEME_GIT_PROMPT_CLEAN=" $GREEN⦾"
export PATH="/usr/local/opt/tcl-tk/bin:$PATH"
export PATH="/usr/local/opt/libpq/bin:$PATH"
export PATH="/usr/local/opt/mysql-client/bin:$PATH"
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
fpath=(~/.zsh/completion $fpath)
source /Users/urias/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/local/opt/powerlevel10k/powerlevel10k.zsh-theme
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh