-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
73 lines (57 loc) · 1.9 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
# for check stanby time
# zmodload zsh/zprof && zprof
# The following lines were added by compinstall
zstyle :compinstall filename '~/.zshrc'
autoload -U compinit
compinit -u
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
bindkey -e
# End of lines configured by zsh-newuser-install
export LANG=en_US.UTF-8
export EDITOR=nano
export VISUAL="$EDITOR"
export DOTFILES=$HOME/.dotfiles
# export
function addToPath {
case ":$PATH:" in
*":$1:"*) PATH="$1:${PATH/:$1/}" ;; # already there
*) PATH="$1:$PATH";; # or PATH="$PATH:$1"
esac
}
[[ -d "$DOTFILES/bin" ]] && addToPath $DOTFILES/bin
# export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"
# eval $(/opt/homebrew/bin/brew shellenv) >>
addToPath /opt/homebrew/bin
export HOMEBREW_PREFIX="/opt/homebrew";
export HOMEBREW_CELLAR="/opt/homebrew/Cellar";
export HOMEBREW_REPOSITORY="/opt/homebrew";
export HOMEBREW_BUNDLE_FILE="$HOME/.dotfiles/macos/Brewfile";
export PATH="/opt/homebrew/bin:/opt/homebrew/sbin${PATH+:$PATH}";
export MANPATH="/opt/homebrew/share/man${MANPATH+:$MANPATH}:";
export INFOPATH="/opt/homebrew/share/info:${INFOPATH:-}";
# Start of lines sheldon setting
eval "$(sheldon source)"
# Pakcage info: config/sheldon/plugins.toml
export ENHANCD_FILTER="fzf --height 50% --reverse --ansi"
export ENHANCD_DOT_SHOW_FULLPATH=1
# End of lines sheldon setting
function gi() { curl -L -s https://www.gitignore.io/api/$@ ;}
alias ls="ls -G"
alias ll="ls -lG"
alias la="ls -laG"
# for check stanby time
# if (which zprof > /dev/null 2>&1) ;then
# zprof
# fi
export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH"
# for Playdate SDK
export PLAYDATE_SDK_PATH="$HOME/Developer/PlaydateSDK"
export PATH="$PLAYDATE_SDK_PATH/bin:$PATH"
# for Rust
[[ -d "/opt/homebrew/opt/rustup/bin" ]] && addToPath /opt/homebrew/opt/rustup/bin
source <(pkgx --shellcode) #docs.pkgx.sh/shellcode