-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
environment.sh
62 lines (54 loc) · 2.22 KB
/
environment.sh
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
#!/bin/bash
# Environment variables
# export TERMINAL=kitty
# export BROWSER=qutebrowser
export EDITOR=nvim
export CLIPCOPY=wl-copy
export CLIPPASTE=wl-paste
# Fzf
export FZF_DEFAULT_COMMAND='fd --hidden --follow --exclude=.git --exclude=node_modules'
export FZF_COMPLETION_TRIGGER=','
export FZF_DEFAULT_OPTS="
--layout=reverse --info=inline --height=80% --multi --cycle --margin=1 --border=rounded
--preview '([[ -f {} ]] && (bat --style=numbers --color=always --line-range=:500 {} || cat {})) || ([[ -d {} ]] \
&& (eza -ahlT -L=2 -s=extension --group-directories-first --icons --git --git-ignore --no-user {} | less)) || echo {} 2> /dev/null | head -200'
--prompt=' ' --pointer=' ' --marker=' '
--color='hl:148,hl+:154,prompt:blue,pointer:032,marker:010,bg+:000,gutter:000'
--preview-window=right:65%
--bind '?:toggle-preview'
--bind 'ctrl-a:select-all'
--bind 'ctrl-y:execute-silent(echo {+} | $CLIPCOPY)'
--bind 'ctrl-e:execute($TERMINAL $EDITOR {+})+reload(fzf)'"
export FZF_CTRL_T_COMMAND='fd -t f -HF -E=.git -E=node_modules'
export FZF_TMUX_OPTS='-p 90%'
export ZDOTDIR=$HOME/.config/zsh
export ZSH_PLUGINS_ALIAS_TIPS_TEXT="Alias: "
export ZSH_TMUX_AUTOSTART='false'
export ZSH_TMUX_AUTOSTART_ONCE='false'
export ZSH_TMUX_AUTOCONNECT='false'
export DISABLE_AUTO_TITLE='true'
export PATH=$HOME/.local/bin:$PATH
export GOPATH=$HOME/.go
export GOBIN=$GOPATH/bin
export PATH=$GOBIN:$PATH
export PATH=$HOME/.cargo/bin:$PATH
export PATH=$HOME/.npm/bin:$PATH
export PATH=$HOME/.luarocks/bin:$PATH
export CHROME_EXECUTABLE=/usr/bin/google-chrome-stable
if [ "$(uname)" = "Darwin" ]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
export MANPATH="/opt/local/share/man:$MANPATH"
export PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH"
export PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"
fi
# Tool configs
if type dircolors >/dev/null 2>&1; then eval "$(dircolors ~/.dircolors)"; fi
# Swap caps lock with escape
# if type setxkbmap >/dev/null 2>&1; then
# setxkbmap -option caps:swapescape
# fi
# Enable touch to click for trackpad
# if type xinput >/dev/null 2>&1; then
# xinput set-prop "$(xinput list --name-only | grep -i touch)" "libinput Tapping Enabled" 1
# fi