diff options
| author | A Farzat <a@farzat.xyz> | 2024-10-27 20:03:27 +0900 | 
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2024-11-07 23:53:10 +0900 | 
| commit | 5f073e8aeb63526ca1fc4595e5b3f27e6aa45930 (patch) | |
| tree | 3e19aaaf9fb96ff4bf9cd2c07739062799bf4871 /.profile | |
| parent | b95b792462dff0e2dc752749dbd428447cd3a5a7 (diff) | |
| download | dotfiles-5f073e8aeb63526ca1fc4595e5b3f27e6aa45930.tar.gz dotfiles-5f073e8aeb63526ca1fc4595e5b3f27e6aa45930.zip | |
Update .profile to reflect changes
Diffstat (limited to '.profile')
| -rw-r--r-- | .profile | 24 | 
1 files changed, 10 insertions, 14 deletions
| @@ -1,20 +1,21 @@  #!/usr/bin/env sh -# Custom ENV variable - the home of the dotfiles. -export DOTFILESDIR="$HOME/.dotfiles" +# Set XDG_CONFIG_HOME. +export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}" +export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}" +export XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}" +export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}" +export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-/run/user/$(id -u)}"  # set PATH so it includes user's private bin if it exists. -[ -d "$DOTFILESDIR/bin" ] && PATH="$(find -H "$DOTFILESDIR/bin" -maxdepth 1 -type d -printf %p:)$PATH"  [ -d "$HOME/.local/bin" ] && PATH="$(find -H "$HOME/.local/bin" -maxdepth 1 -type d -printf %p:)$PATH"  [ -d "$HOME/bin" ] && PATH="$(find -H "$HOME/bin" -maxdepth 1 -type d -printf %p:)$PATH" -# Read zshrc from there. -export ZDOTDIR="$DOTFILESDIR/zsh" +# Declare that this is my machine with all configs +export AFARZATMACHINE=FULL -# Set XDG_CONFIG_HOME. -export XDG_CONFIG_HOME="$DOTFILESDIR/config" -export XDG_DATA_HOME="$HOME/.local/share" -export XDG_CACHE_HOME="$HOME/.cache" +# Read zshrc from there. +export ZDOTDIR="$XDG_CONFIG_HOME/zsh"  # Some default programs.  export VISIUAL="nvim" @@ -48,14 +49,9 @@ export GOPATH="$HOME/.local/share/go"  export GOBIN="$HOME/.local/bin/go"  # Node.  export NVM_DIR="${XDG_DATA_HOME}/nvm" -# Mbsync. -export MBSYNCRC="${XDG_CONFIG_HOME}/mbsync/config"  # GnuPG.  export GNUPGHOME="${XDG_DATA_HOME}/gnupg"  # Pass.  export PASSWORD_STORE_DIR="${XDG_DATA_HOME}/password-store"  # Gnu Info.  # export INFOPATH="$XDG_DATA_HOME/info:$INFOPATH" - -# Also source private profile. -[ -f "$DOTFILESDIR/general/profile.private" ] && . "$DOTFILESDIR/general/profile.private" | 
