forked from zimfw/custom
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.zsh
More file actions
64 lines (56 loc) · 1.64 KB
/
init.zsh
File metadata and controls
64 lines (56 loc) · 1.64 KB
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
#
# Custom aliases/settings
#
# any custom stuff should go here.
# ensure that 'custom' exists in the zmodules array in your .zimrc
export DOCKER_HOST=unix:///var/run/docker.sock
export HOST_PRIVATE_IP=127.0.0.1
export ANDROID_HOME=$HOME/Library/Android/sdk
export GPG_TTY=$(tty)
export NODE_OPTIONS="--max-old-space-size=6144"
typeset -U PATH path
path=($HOME/bin $HOME/.boxout $ANDROID_HOME/emulator $ANDROID_HOME/platform-tools $path)
export PATH
export HISTSIZE=50000
export SAVEHIST=100000
setopt EXTENDED_HISTORY
unsetopt SHARE_HISTORY
# aliases
alias ..='cd ..'
alias ...='cd ../..'
alias h='history 0'
alias g='grep'
alias j='jobs -l'
alias cp='cp -i'
alias mv='mv -i'
alias mkdir='mkdir -p'
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias path='echo -e ${PATH//:/\\n}'
alias du='du -h'
alias df='df -h'
alias ctail="colortail -k $HOME/.colortail"
alias mtail="multitail"
alias brake='bundle exec rake'
alias tunnel='autossh -M 20000 -nNT tunnel'
alias rmdirs.empty='find . -depth -type d -empty -exec rmdir -v {} \;'
alias urldecode='python -c "import sys, urllib as ul; print ul.unquote_plus(sys.argv[1])"'
alias urlencode='python -c "import sys, urllib as ul; print ul.quote_plus(sys.argv[1])"'
alias lprint='/usr/bin/lp -o nobanner -d $LPDEST' # Assumes LPDEST is defined
alias pjet='enscript -h -G -fCourier9 -d $LPDEST' # Pretty-print using enscript
# npx aliases
npx_aliases=(
'expo'
'expo-doctor'
'repomix'
'supabase'
'wrangler'
)
for alias in "${npx_aliases[@]}"; do
alias $alias="npx $alias"
done
# sandbox aliases
alias bo='boxout'
alias claude='bo claude'
alias codex='bo codex'