dotfiles/zsh/.profile
Gabriel Arazas 0681d1fd7c Structure the project with NixOS-styled distros
It's been a while but I've been using NixOS (or anything styled like it
like GuixSD, for example) and distro-hopped from Arch Linux.
I think it's high noon for making the structure of this setup to be
truer to one of the big objectives which is how easy to transfer this
between different setups.
Which means I removed some things such as the package lists, systemd
config files, and package manager-specific configs.
While the solution is easy (which is to simply ignore the
system-specific files) but I'm not going with the pragmatic solution not
because I'm a dumbass but because I'm so smart that I want to create a
challenge for myself to solve a puzzle on figuring out a way on how to
structure my dotfiles. :)

Such a productive use of my time, that's for sure.
2020-09-11 03:12:26 +08:00

35 lines
1.5 KiB
Bash
Executable File

# This is where environmental variables are set.
# If you're looking for the aliases, keybindings, and prompts, they are in the equivalent `.rc` (i.e., `.zshrc`, `.bashrc`) file.
# For more information, see the following Unix Exchange thread (https://unix.stackexchange.com/q/71253).
# Or the Arch Linux Wiki on zsh (https://wiki.archlinux.org/index.php/Zsh#Startup/Shutdown_files).
# Also check the manual pages for `zshall` (i.e., `man zshall`).
# My XDG Base Directory spec configuration.
# Check it out at https://wiki.archlinux.org/index.php/XDG_Base_Directory for more information.
export XDG_CACHE_HOME=$HOME/.cache
export XDG_CONFIG_HOME=$HOME/.config
export XDG_DATA_HOME=$HOME/.local/share
# My custom variables (only applicable at user level)
export PICTURES_DIRECTORY=$HOME/Pictures
export DOCUMENTS_DIRECTORY=$HOME/Documents
export BIN_DIRECTORY=$HOME/bin
export VIDEO_DIRECTORY=$HOME/recordings
# If you come from bash you might have to change your $PATH.
export DENO_INSTALL="$HOME/.deno"
export PATH="$BIN_DIRECTORY:/usr/local/bin:$HOME/.local/bin:$HOME/.cargo/bin:$HOME/.gem/ruby/2.7.0/bin:$DENO_INSTALL/bin:$PATH"
# export MANPATH="$MANPATH:$HOME/.local/share/man"
# Common environmental variables.
# Or at least that'll be used by my setup.
export EDITOR="nvim"
export TERMINAL="alacritty"
export BROWSER="firefox"
export READ="zathura"
export FILE="lf"
# This is a program that `sudo -a` needs for prompting the user and password.
export SUDO_ASKPASS="$HOME/.local/bin/askpass"