43
43
# colored GCC warnings and errors
44
44
# export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
45
45
46
+ # if hash nix-env 2>/dev/null; then
47
+ # LOCALE_ARCHIVE="$(nix-env --installed --no-name --out-path --query glibc-locales)/lib/locale/locale-archive"
48
+ # export LOCALE_ARCHIVE
49
+ # fi
50
+ if [ -f " $HOME " /.nix-profile/etc/profile.d/hm-session-vars.sh ]; then
51
+ # shellcheck source=/dev/null
52
+ source " $HOME " /.nix-profile/etc/profile.d/hm-session-vars.sh
53
+ fi
46
54
if hash vim 2> /dev/null; then
47
55
export EDITOR=vim
48
56
fi
@@ -54,14 +62,6 @@ if [ -d "$N_PREFIX" ]; then
54
62
export PATH=$N_PREFIX /bin:$PATH
55
63
export N_PREFIX
56
64
fi
57
- DENO_INSTALL=$HOME /.deno/bin
58
- if hash dvm 2> /dev/null || [ -x " $DENO_INSTALL " /deno ]; then
59
- if ! [ -d " $DENO_INSTALL " ]; then
60
- mkdir -p " $DENO_INSTALL "
61
- fi
62
- export PATH=$DENO_INSTALL :$PATH
63
- fi
64
- unset DENO_INSTALL
65
65
if [ -d " $HOME " /.dotnet/tools ] && ! [[ $PATH =~ " $HOME " /.dotnet/tools ]]; then
66
66
export PATH=$PATH :$HOME /.dotnet/tools
67
67
fi
@@ -73,7 +73,7 @@ if hash sccache 2>/dev/null; then
73
73
RUSTC_WRAPPER=` which sccache`
74
74
export RUSTC_WRAPPER
75
75
fi
76
- if [ -e " $HOME " /.krew/bin/kubectl-krew ]; then
76
+ if [ -d " $HOME " /.krew/bin ]; then
77
77
export PATH=$PATH :$HOME /.krew/bin
78
78
fi
79
79
if [ -e " $HOME " /.go/bin/go ]; then
117
117
# fi
118
118
119
119
if ! [ -v XDG_RUNTIME_DIR ]; then
120
- export XDG_RUNTIME_DIR=/run/user/` id -u` /
120
+ XDG_RUNTIME_DIR=/run/user/` id -u` /
121
+ export XDG_RUNTIME_DIR
121
122
if ! [ -d " $XDG_RUNTIME_DIR " ]; then
122
123
mkdir -p " $XDG_RUNTIME_DIR "
123
124
chmod 755 " $XDG_RUNTIME_DIR "
127
128
# setup ssh-agent
128
129
# only setup ssh agent if not previosly set
129
130
if ! [ -v SSH_AUTH_SOCK ]; then
130
- SSH_DIR=${ XDG_RUNTIME_DIR} gnupg
131
+ SSH_DIR=$XDG_RUNTIME_DIR / gnupg
131
132
if ! [ -d " $SSH_DIR " ]; then
132
133
mkdir -p " $SSH_DIR "
133
134
chmod 700 " $SSH_DIR "
0 commit comments