~wrm/dotfiles

ref: f0dc804d36d6538ff9bac8af4e32a3210a2826b0 dotfiles/.config/shell/profile -rw-r--r-- 1.1 KiB
f0dc804d — +wrm shell: Add git aliases generating script 3 months ago
                                                                                
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
#!/bin/sh

export EDITOR="nvim"
export BROWSER="links"

# XDG Dirs
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CACHE_HOME="$HOME/.cache"

# Shell environment
export PATH="${PATH}:$HOME/.local/bin"
export ENV="${XDG_CONFIG_HOME}/shell/shellrc"

# Generate special aliases
"${XDG_CONFIG_HOME}/shell/git-aliases.sh" > "${XDG_CONFIG_HOME}/shell/git-aliases"

# Uses \$ to delay expansion until string is actually shown.
# _ps1_dir is a function defined in $ENV.
export PS1="${USER}@$(cat /etc/hostname):\$(_ps1_dir)$ "
#export PS1="${USER}@$(cat /etc/hostname):.$ "
export HISTFILE="${XDG_DATA_HOME}/shell_history"
export HISTSIZE="9999999"

# Other Programs
export LESSHISTFILE="-"
export SUDO_ASKPASS="$HOME/.local/bin/dmenupass"
export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
export TMUX_TMPDIR="$XDG_RUNTIME_DIR"
#export INPUTRC="${XDG_CONFIG_HOME}/shell/inputrc"
#export ALSA_CONFIG_PATH="$XDG_CONFIG_HOME/alsa/asoundrc"

# Convenients :)
export BAT="/sys/class/power_supply/BAT?"

# Run loadkeys in case we want to use the vterm
#loadkeys "${XDG_CONFIG_HOME}/conf.d/keymaps"