diff options
author | Matt Housh <jaeger@crux.ninja> | 2022-07-26 15:48:00 -0500 |
---|---|---|
committer | Matt Housh <jaeger@crux.ninja> | 2022-07-26 15:48:00 -0500 |
commit | 3d4d5f4fced503fbca08ea32a30f3d1dff623c21 (patch) | |
tree | beb86150fd2e76f9c5252e98e951df1b6667c125 /bash | |
parent | 39fa443625aad9869b0b5fdae5f93190eb701616 (diff) | |
download | core-3d4d5f4fced503fbca08ea32a30f3d1dff623c21.tar.gz core-3d4d5f4fced503fbca08ea32a30f3d1dff623c21.tar.xz |
bash: added XDG-related defaults from Tim B to profile, removed PATH gatekeeping
Diffstat (limited to 'bash')
-rw-r--r-- | bash/.signature | 6 | ||||
-rw-r--r-- | bash/Pkgfile | 2 | ||||
-rw-r--r-- | bash/profile | 26 |
3 files changed, 22 insertions, 12 deletions
diff --git a/bash/.signature b/bash/.signature index 6440abad..ce4d3baa 100644 --- a/bash/.signature +++ b/bash/.signature @@ -1,7 +1,7 @@ untrusted comment: verify with /etc/ports/core.pub -RWRJc1FUaeVeqnH0wqPSB96wb9bfP8Z9ysInT4TsHjqsA1sdal1yw2DXk+A0I0+r9ZIIgOPM6ch2SDVQjqkqcMgptsEc2WJHTgg= -SHA256 (Pkgfile) = 95dba78f92fe787d99958788718c13bcdbd3f8c86280a06cbe4b34c428f0e41d +RWRJc1FUaeVeqv5KdFe3yDOO6/h0VMLayohWKSRlS3heDH9vIaQTJBvj2zXc4tEANmZVFMIstwsJEY/Lk61ptuZUvvVQF/0Gpg8= +SHA256 (Pkgfile) = 62ba1e9cf6a2a0f6d6394aec699950e3e6a0450bb9e9e7fc2d79a96989760efa SHA256 (.footprint) = 01ad0142672053f07bc5f2c5e481cb8cde032296c7eb3ff97334d626dce4f45c SHA256 (bash-5.1.tar.gz) = cc012bc860406dcf42f64431bcd3d2fa7560c02915a601aba9cd597a39329baa SHA256 (bash-5.1.16.patch.gz) = 13e56e287db6b14a578cad25499b078210549989c529acd5328a9d4ef921a9d5 -SHA256 (profile) = 10dd02d41a7931a841bdfb5ca7c3fee476a901373b571c4a7c621ef255804ed5 +SHA256 (profile) = 2418c0b9aca39b8f5f51234dbe98e71c66e646ad808f2a500ae7457071e88800 diff --git a/bash/Pkgfile b/bash/Pkgfile index f4d03fdd..59d24909 100644 --- a/bash/Pkgfile +++ b/bash/Pkgfile @@ -5,7 +5,7 @@ name=bash version=5.1.16 -release=1 +release=2 source=(https://ftpmirror.gnu.org/gnu/$name/$name-${version:0:3}.tar.gz $name-$version.patch.gz profile) diff --git a/bash/profile b/bash/profile index 13795540..05cb04e4 100644 --- a/bash/profile +++ b/bash/profile @@ -2,15 +2,25 @@ # /etc/profile: system-wide defaults for bash(1) login shells # -if [ "$UID" = "0" ]; then - export PATH="/sbin:/usr/sbin:/opt/sbin:/bin:/usr/bin:/opt/bin" -else - export PATH="/bin:/usr/bin:/opt/bin" -fi +export PATH="/sbin:/usr/sbin:/opt/sbin:/bin:/usr/bin:/opt/bin" -if [ ! -f ~/.inputrc ]; then - export INPUTRC="/etc/inputrc" -fi +export XDG_RUNTIME_DIR=/run/user/${UID} +export XDG_CONFIG_HOME=$HOME/.config +export XDG_CACHE_HOME=$HOME/.local/cache +export XDG_DATA_HOME=$HOME/.local/share +export XDG_STATE_HOME=$HOME/.local/state +[[ ! -e "$XDG_STATE_HOME" ]] && mkdir -p "$XDG_STATE_HOME" +# https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html +#export XDG_DESKTOP_DIR=$HOME/Desktop +#export XDG_DOCUMENTS_DIR=$HOME/Documents/ +#export XDG_MUSIC_DIR=$HOME/Music +#export XDG_PICTURES_DIR=$HOME/Pictures/ +#export XDG_VIDEOS_DIR=$HOME/Videos/ +#export XDG_DOWNLOAD_DIR=$HOME/Downloads/ +#export XDG_TEMPLATES_DIR=$HOME/ +#export XDG_PUBLICSHARE_DIR=$HOME/ + +[[ ! -f ~/.inputrc ]] && export INPUTRC="/etc/inputrc" export LESS="-R" export PS1="\[\033[1m\]\\$ \[\033[0m\]" |