aboutsummaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
Diffstat (limited to '.profile')
-rwxr-xr-x.profile12
1 files changed, 9 insertions, 3 deletions
diff --git a/.profile b/.profile
index bfe7c25..e55c012 100755
--- a/.profile
+++ b/.profile
@@ -1,7 +1,7 @@
#!/usr/bin/env sh
if [ -z "$XDG_RUNTIME_DIR" ]
then
- XDG_RUNTIME_DIR="/tmp/$UID-runtime-dir"
+ XDG_RUNTIME_DIR="/tmp/$(id -u)-runtime-dir"
export XDG_RUNTIME_DIR
if [ ! -d "$XDG_RUNTIME_DIR" ]
then
@@ -26,6 +26,9 @@ GTK_THEME="Dracula"
BAT_THEME="Dracula"
TERMINAL="alacritty"
XDG_CONFIG_HOME="$HOME/.config"
+XDG_CACHE_DIR="$HOME/.cache"
+GOPATH="$XDG_CACHE_DIR/go"
+PNPM_HOME="$HOME/.local/share/pnpm"
export DENO_INSTALL
export DENO_NO_UPDATE_CHECK
@@ -33,6 +36,9 @@ export DENO_NO_PROMPT
export DOTNET_CLI_TELEMETRY_OPTOUT
export NEXT_TELEMETRY_DEBUG
export XDG_CONFIG_HOME
+export XDG_CACHE_DIR
+export GOPATH
+export PNPM_HOME
export GOPROXY
export EDITOR
@@ -41,7 +47,7 @@ export BAT_THEME
export TERMINAL
BAT="$(which bat 2> /dev/null || which batcat 2> /dev/null)"
-if [ -n "$BAT" ]
+if [ -n "$BAT" ] && man --version 2> /dev/null
then
MANPAGER="sh -c 'col -bx | $BAT -l man -p'"
export MANPAGER
@@ -67,6 +73,6 @@ then
export XDG_SESSION_TYPE
fi
-PATH="$HOME/go/bin:$DENO_INSTALL/bin:$BUN_INSTALL/bin:$HOME/.cargo/bin:$HOME/.local/bin:$HOME/.luarocks/bin:$HOME/.dotnet/tools:$PATH"
+PATH="$PNPM_HOME:$GOPATH/bin:$DENO_INSTALL/bin:$BUN_INSTALL/bin:$HOME/.cargo/bin:$HOME/.local/bin:$HOME/.luarocks/bin:$HOME/.dotnet/tools:$PATH"
export PATH