This repository was archived by the owner on Apr 12, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.profile
More file actions
86 lines (72 loc) · 5.52 KB
/
Copy path.profile
File metadata and controls
86 lines (72 loc) · 5.52 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# @IMPORTANT - Do not use .bash_profile or this is ignored
# ~/.profile allows other shells to use the same format
# Set from ~/.bashrc to prevent wayland running again.
# Workaround so this loads default in X11 and Wayland.
if [ -v DOT_PROFILE_INIT ]; then
return 2> /dev/null || exit 0
fi
# ┌─────────────────────────────────────────────────────────────────┐
# │ XDG Directory Paths │
# └─────────────────────────────────────────────────────────────────┘
# # [Spec] https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
# ───────────────────────────────────────────────────────────────────
export XDG_CONFIG_HOME=$HOME/.config # Config Files
export XDG_DATA_HOME=$HOME/.local/share # Shared Data
export XDG_STATE_HOME=$HOME/.local/state # Actions History, Logs, Recent Files
export XDG_CACHE_HOME=$HOME/.cache
export XDG_LIB_HOME=$HOME/.local/lib # For SDKs, (Custom)
# [Example] $HOME/.config/bash_completions
# $HOME/.comfig/curl/curlrc
export YDOTOOL_SOCKET=/run/user/$UID/.ydotool_socket
# ┌─────────────────────────────────────────────────────────────────┐
# │ Set Correct Paths │
# └─────────────────────────────────────────────────────────────────┘
export LESSHISTFILE="${XDG_CONFIG_HOME}/less/history"
export LESSKEY="${XDG_CONFIG_HOME}/less/keys"
export WGETRC="$XDG_CONFIG_HOME/wgetrc"
export VIMINIT='source $XDG_CONFIG_HOME/vim/vimrc'
#export VIMINIT="let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC"
#export PYLINTHOME="$XDG_CACHE_HOME"/pylint,
#export PYLINTRC="$XDG_CONFIG_HOME"/pylint/pylintrc
export DOCKER_CONFIG="$XDG_CONFIG_HOME"/docker
export GNUPGHOME=$XDG_DATA_HOME/gnupg
export CARGO_HOME=$XDG_DATA_HOME/cargo
#export ZDOTDIR="$XDG_CONFIG_HOME/zsh/"
# NPM (Uncertain on how effective)
# see npm config ls -l | grep /
export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/config
export NPM_CONFIG_CACHE=$XDG_CACHE_HOME/npm
export NPM_CONFIG_TMP=$XDG_RUNTIME_DIR/npm
# ┌─────────────────────────────────────────────────────────────────┐
# │ If Bash; Load .bashrc │
# └─────────────────────────────────────────────────────────────────┘
if [ "$XDG_SESSION_TYPE" != "wayland" ] && [ -n "$BASH_VERSION" ]; then
# Running Bash and NOT in Wayland
# (So that ./bashrc can trigger this file for Wayland with a loop)
[ -f $HOME/.bashrc ] && . $HOME/.bashrc
fi
# ┌─────────────────────────────────────────────────────────────────┐
# │ Ensure user-specific executable are in $PATH │
# └─────────────────────────────────────────────────────────────────┘
[ -d ~/.local/bin ] && export PATH="$HOME/.local/bin:$PATH"
# ┌─────────────────────────────────────────────────────────────────┐
# │ Fix: compdef if not exists │
# └─────────────────────────────────────────────────────────────────┘
if ( ! ($+commands[compdef])) >/dev/null 2>&1; then
alias compdef='1 >/dev/null'
fi
# ┌─────────────────────────────────────────────────────────────────┐
# │ Autoload X11 Touchpad Options │
# └─────────────────────────────────────────────────────────────────┘
[ -f $HOME/.xinitrc ] && . $HOME/.xinitrc
[ -f "$HOME/.cargo/env" ] && . "$HOME/.cargo/env"
[ -f "$HOME/.local/share/../bin/env" ] && . "$HOME/.local/share/../bin/env"
. "/home/jesse/.local/share/cargo/env"