-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.profile
More file actions
62 lines (48 loc) · 1.29 KB
/
.profile
File metadata and controls
62 lines (48 loc) · 1.29 KB
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
# .profile (multi-platform)
alias config='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
# OS-specific parts (aliases)
case `uname -s` in
Linux)
alias ls="ls --color=auto"
;;
*BSD|Darwin)
alias ls="ls -G"
;;
esac
alias l="ls -l"
alias la="ls -lhAF"
alias ll="ls -lhF"
alias lt="ls -lhtrF"
alias l.="ls -lhtrdF .*"
# Simple helper to jump to the top-level directory in a git repository
alias gtl='cd $(git rev-parse --show-toplevel)'
# Use english locales by default
export LANG=en_US.UTF-8
export LC_ALL="${LANG}"
# Default editor
if command -v nvim > /dev/null; then
export EDITOR=nvim
fi
# Something LESS
export LESS="-F -X $LESS"
# Device-local profile settings
if [ -f "${HOME}/.profile.local" ]; then
source "${HOME}/.profile.local"
fi
# Secrets from environment variables
if [ -f "${HOME}/.profile.secrets" ]; then
source "${HOME}/.profile.secrets"
fi
# Kubectl plugin manager
PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
# Add some often used shortcut functions to BC
export BC_ENV_ARGS="-l $HOME/.bcrc"
# Enable direnv shell hooks
if command -v direnv > /dev/null; then
eval "$(direnv hook zsh)"
fi
# Setup a Google Go default path
export GOPATH=$HOME/Projects/Go
export PATH=$GOPATH/bin:$PATH
# Add .local/bin for locally installed binaries
export PATH=$HOME/.local/bin:$PATH