-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
45 lines (31 loc) · 905 Bytes
/
.bashrc
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
# .bashrc
# default editor
export EDITOR="nvim"
export VISUAL="nvim"
# XDG
export XDG_DATA_HOME="${HOME}/.local/share"
export XDG_CONFIG_HOME="${HOME}/.config"
export XDG_CACHE_HOME="${HOME}/.cache"
# Go
export GOPATH="${HOME}/.local/share/go"
export GOBIN="${GOPATH}/bin"
export GOPKG="${GOPATH}/pkg"
export GOSRC="${GOPATH}/src"
# Rust
export CARGO_HOME="${HOME}/.local/share/cargo"
export RUSTUP_HOME="${HOME}/.local/share/rustup"
# path
export PATH="${HOME}/.local/bin:${CARGO_HOME}/bin:${GOBIN}:${PATH}"
export WLR_NO_HARDWARE_CURSORS=1
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
if [ -z $DISPLAY ] && [ "$(tty)" == "/dev/tty1" ]; then
exec sway
fi
if type rg &> /dev/null; then
export FZF_DEFAULT_COMMAND='rg --files'
export FZF_DEFAULT_OPTS='-m --height 50% --border'
fi
eval "$(direnv hook bash)"