feat(bash): XDG Dir spec updates and other fixes

- Update program configurations to use the XDG Directories with the help
  of xdg-ninja.
- Add missing alias for the copy command.
- Remove the alias for tmux since it should now support XDG_CONFIG_HOME
  by default.
- Remove the run_package_updates function since this is now a bash
  script.
- Update the MANPAGER variable so that it works properly with neovim,
This commit is contained in:
Dan Anglin 2022-05-15 21:33:17 +01:00
parent 64f2783270
commit 30038788b4
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638
9 changed files with 24 additions and 12 deletions

View file

@ -8,6 +8,7 @@ alias l='ls -CF'
alias rm='rm -i' alias rm='rm -i'
alias mv='mv -i' alias mv='mv -i'
alias cp='cp -i'
alias grep='grep --color=auto' alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto' alias fgrep='fgrep --color=auto'
@ -22,7 +23,6 @@ if [[ -x $( command -v pacman ) ]]; then
alias pacupdate='sudo pacman -Syu --noconfirm' alias pacupdate='sudo pacman -Syu --noconfirm'
fi fi
alias tmux="tmux -f ${XDG_CONFIG_HOME}/tmux/tmux.conf"
alias pwgen="pwgen -s -c -n" alias pwgen="pwgen -s -c -n"
alias dc="docker-compose" alias dc="docker-compose"

View file

@ -0,0 +1,3 @@
## vim: ft=sh :
export DOCKER_CONFIG=${XDG_CONFIG_HOME}/docker

View file

@ -27,13 +27,3 @@ go_up() {
echo "Unable to go up $steps directories." echo "Unable to go up $steps directories."
fi fi
} }
# run_package_updates() ensures all apt packages are updated
# and runs autoremove to remove any unused packages.
run_package_updates() {
sudo apt update
apt list --upgradable
sleep 5
sudo apt dist-upgrade
sudo apt autoremove
}

View file

@ -0,0 +1,3 @@
## vim: ft=sh :
export GNUPGHOME=${XDG_DATA_HOME}/gnupg

View file

@ -0,0 +1,3 @@
## vim: ft=sh :
export MINIKUBE_HOME=${XDG_DATA_HOME}/minikube

View file

@ -5,7 +5,7 @@ export BROWSER=firefox
export EDITOR=nvim export EDITOR=nvim
export TERMINAL=st export TERMINAL=st
export LANG=en_GB.UTF-8 export LANG=en_GB.UTF-8
export MANPAGER="nvim -c 'set ft=man' -" export MANPAGER="nvim +Man!"
# == vi mode in Bash # == vi mode in Bash
set -o vi set -o vi

View file

@ -0,0 +1,6 @@
## File: ~/.bashrc.d/pulumi
## Description: Bash configuration for the pulumi setup
## vim: ft=sh :
export PULUMI_SKIP_UPDATE_CHECK="true"
export PULUMI_HOME="${XDG_DATA_HOME}/pulumi"

View file

@ -0,0 +1,4 @@
## vim: ft=sh :
export TERMINFO=${XDG_DATA_HOME}/terminfo
export TERMINFO_DIRS=${TERMINFO}:/usr/share/terminfo

View file

@ -0,0 +1,3 @@
## vim: ft=sh :
export VAGRANT_HOME=${XDG_DATA_HOME}/vagrant