Skip to content

Commit 043a7a0

Browse files
committed
Move variable declarations into zprofile
1 parent 7ab08ea commit 043a7a0

2 files changed

Lines changed: 24 additions & 26 deletions

File tree

zprofile

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,27 @@
44
#
55
#
66

7-
# Nothing to add today!
7+
# History settings
8+
export HISTFILESIZE=200000
9+
export HISTSIZE=100000
10+
export SAVEHIST=100000
11+
export HISTFILE=~/.zsh_history
12+
export KEYTIMEOUT=1 # reduce vi-mode lag of 0.4 second delay to 0.1
13+
14+
# General exports
15+
export PAGER="less"
16+
17+
# Lang variables
18+
export LC_CTYPE="en_US.UTF-8"
19+
export LC_ALL="en_US.UTF-8"
20+
export LANG="en_US.UTF-8"
21+
export LANGUAGE="en_US.UTF-8"
22+
23+
# Add ~/bin to our PATH
24+
[[ -d "$HOME/bin" ]] && export PATH=$PATH:$HOME/bin
25+
26+
# ~/.local/bin to our PATH
27+
[[ -d "$HOME/.local/bin" ]] && export PATH=$PATH:$HOME/.local/bin
28+
29+
# Add /opt/local/bin
30+
[[ -d "/opt/local/bin" ]] && export PATH=$PATH:/opt/local/bin

zsh/env-available/zshenv-general

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,9 @@ bindkey -e
1111
bindkey "^R" history-incremental-search-backward
1212
bindkey "^S" history-incremental-search-forward
1313

14-
# History settings
15-
export HISTFILESIZE=100000
16-
export HISTSIZE=50000
17-
export SAVEHIST=50000
18-
export HISTFILE=~/.zsh_history
19-
export KEYTIMEOUT=1 # reduce vi-mode lag of 0.4 second delay to 0.1
20-
21-
# General exports
22-
export PAGER="less"
23-
2414
# Preferred editor: emacsclient if available (this will be set in zshenv-emacs), otherwise vim.
2515
[[ -f `which emacsclient` ]] || export EDITOR="vim"
2616

27-
# Lang variables
28-
export LC_CTYPE="en_US.UTF-8"
29-
export LC_ALL="en_US.UTF-8"
30-
export LANG="en_US.UTF-8"
31-
export LANGUAGE="en_US.UTF-8"
32-
33-
# Add ~/bin to our PATH
34-
[[ -d "$HOME/bin" ]] && export PATH=$PATH:$HOME/bin
35-
36-
# ~/.local/bin to our PATH
37-
[[ -d "$HOME/.local/bin" ]] && export PATH=$PATH:$HOME/.local/bin
38-
39-
# Add /opt/local/bin
40-
[[ -d "/opt/local/bin" ]] && export PATH=$PATH:/opt/local/bin
41-
4217
# General
4318
alias h=history
4419
alias sl=ls

0 commit comments

Comments
 (0)