-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshenv
52 lines (38 loc) · 1.52 KB
/
.zshenv
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
# Used for setting user's environment variables. This file will always be sourced.
# load order
# .zshenv > .zprofile > .zshrc
# you may be tempted to set the path here. Avoid it!
# Prior to loading this file /etc/zprofile is read, which in a default macOS installation executes:
# eval `/usr/libexec/path_helper -s`
# This will screw with the ordering of any customizations to your path
TZ="America/Los_Angeles"
TERM='xterm-256color'
EDITOR='nvim'
VISUAL='nvim'
export FZF_DEFAULT_COMMAND='fd --type file --no-ignore-vcs --color=always'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_DEFAULT_OPTS="--ansi"
GITHUB_USERNAME="kaushikgopal"
HOMEBREW_CACHE="/Library/Caches/Homebrew"
HOMEBREW_CASK_OPTS="--appdir=/Applications --fontdir=/Library/Fonts"
HOMEBREW_NO_AUTO_UPDATE=1
HOMEBREW_NO_INSTALL_UPGRADE=1
# Ruby development
GEM_HOME="$HOME/.gem"
# XDG_CONFIG_HOME="$HOME/.config"
# XDG_DATA_HOME="$HOME/.data"
# XDG_CACHE_HOME="$HOME/.cache"
HISTFILE=$HOME/.zsh_history
HISTSIZE=1000
SAVEHIST=1000
setopt APPEND_HISTORY # adds history
setopt INC_APPEND_HISTORY SHARE_HISTORY # adds history incrementally and share it across sessions
setopt HIST_IGNORE_ALL_DUPS # don't record dupes in history
####################
# Tips
####################
# export vs regular assignment
# https://stackoverflow.com/a/70585583/159825
# export → makes the variable an "environment" variable
# - i.e. processes started by this shell will also inherit these variables
# - otherwise it's only available to this process