-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zprofile
115 lines (82 loc) · 2.44 KB
/
.zprofile
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
stty -ixon
fpath=($HOME/Projects/dotfiles/zsh_functions $fpath)
# export LANG=en_US.UTF-8
export CLICOLOR=1
autoload -Uz add-zsh-hook
autoload -Uz compinit
compinit
autoload -Uz colors
colors
autoload promptinit
promptinit
prompt tungd
export CDPATH=.:$HOME:~/Projects
export WORDCHARS='*?[]~&;!$%^<>'
export HISTFILE=$HOME/.zsh_history
export HISTSIZE=10000
export SAVEHIST=10000
# http://zsh.sourceforge.net/Doc/Release/Options.html
setopt auto_cd
setopt auto_pushd
setopt share_history
setopt hist_verify
setopt hist_ignore_all_dups
setopt hist_reduce_blanks
setopt prompt_subst
setopt multios
zle -N newtab
zmodload -i zsh/complist
zstyle ':completion::complete:*' use-cache 1
zstyle ':completion::complete:*' cache-path ~/.zsh/cache/
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
zstyle ':completion:*' insert-tab pending
zstyle ':completion:*:cd:*' tag-order local-directories directory-stack path-directories
zstyle ':completion:*:*:*:*:*' menu select
bindkey -e
bindkey '^W' backward-kill-word
bindkey '\M\b' backward-kill-word
autoload -U edit-command-line
zle -N edit-command-line
bindkey '^X^E' edit-command-line
# if [ "$TERM_PROGRAM" = "Apple_Terminal" ] || [ "$TERM_PROGRAM" = "iTerm.app" ]; then
# update_terminal_cwd () {
# local PWD_URL="file://$HOST${PWD// /%20}"
# printf '\e]7;%s\a' "$PWD_URL"
# }
# update_terminal_cwd
# add-zsh-hook chpwd update_terminal_cwd
# fi
if [[ $EMACS = t ]]; then
unsetopt zle
unset zle_bracketed_paste
fi
export ENV=development
export LOCAL=$HOME/.local
export PGHOST=127.0.0.1
export PGPASS=postgres
export PGPASSWORD=postgres
export PGUSER=postgres
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export PATH=$HOME/.local/sbin:$HOME/.local/bin:$PATH
export PATH=$HOME/Projects/dotfiles/bin:$PATH
[[ -e /opt/local/etc/profile.d/z.sh ]] && . /opt/local/etc/profile.d/z.sh
[[ $+commands[direnv] ]] && eval "$(direnv hook zsh)"
alias g=git
alias e="emacsclient -n"
alias diff="diff --color -u"
notify() {
osascript -e "display notification \"$2\" with title \"$1\""
}
fixmod() {
find $1 -type f -exec chmod 644 {} \;
find $1 -type d -exec chmod 755 {} \;
}
myip() {
dig +short txt ch whoami.cloudflare @1.0.0.1;
}
export PATH=$HOME/Library/Python/3.12/bin:$PATH
export PNPM_HOME="/Users/tung/Library/pnpm"
export PATH="$PNPM_HOME:$PATH"
export PATH="$HOME/.cargo/bin:$PATH"
# Added by OrbStack: command-line tools and integration
source ~/.orbstack/shell/init.zsh 2>/dev/null || :