-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zsh
55 lines (46 loc) · 1.07 KB
/
.zsh
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
#!/bin/zsh
export Z="$HOME/.zsh"
export TERM=xterm-256color
function is_macos() { [[ "$OSTYPE" = "darwin"* ]] || return 1 }
function is_linux() { [[ "$OSTYPE" = "linux"* ]] || return 1 }
function is_apple(){ is_macos && [[ $(sysctl -n machdep.cpu.brand_string) == 'Apple'* ]] || return 1 }
export LANG=en_US.utf8
export LC_ALL=en_US.UTF-8
# Languages & frameworks
alias python="$(which python3)"
export BUN_INSTALL="$HOME/.bun"
export DENO_INSTALL="$HOME/.deno"
export GOPATH="$HOME/.golang"
PATH_DIRS=(
"$HOME/.scripts"
"$HOME/.binaries"
"$HOME/.local/bin"
"$GOPATH/bin"
"$DENO_INSTALL/bin"
"$BUN_INSTALL/bin"
"$HOME/.orbstack/bin"
)
PATH="$PATH:${(j.:.)PATH_DIRS}"
# https://zsh.sourceforge.io/Doc/Release/Options.html
zsh_opts=(
auto_list
auto_menu
auto_param_keys
autocd
correct
hist_ignore_all_dups
hist_ignore_dups
hist_ignore_space
interactive_comments
null_glob
share_history
extended_history
)
setopt "${zsh_opts[@]}"
export SAVEHIST=10000
export HISTSIZE=10000
# custom scripts
for f in $Z/*.zsh; do
source "$f";
done
eval "$(fzf --zsh)"