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:
parent
64f2783270
commit
30038788b4
9 changed files with 24 additions and 12 deletions
|
@ -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"
|
||||||
|
|
||||||
|
|
3
config/bash/bashrc.d/docker
Normal file
3
config/bash/bashrc.d/docker
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
## vim: ft=sh :
|
||||||
|
|
||||||
|
export DOCKER_CONFIG=${XDG_CONFIG_HOME}/docker
|
|
@ -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
|
|
||||||
}
|
|
||||||
|
|
3
config/bash/bashrc.d/gnupg
Normal file
3
config/bash/bashrc.d/gnupg
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
## vim: ft=sh :
|
||||||
|
|
||||||
|
export GNUPGHOME=${XDG_DATA_HOME}/gnupg
|
3
config/bash/bashrc.d/minikube
Normal file
3
config/bash/bashrc.d/minikube
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
## vim: ft=sh :
|
||||||
|
|
||||||
|
export MINIKUBE_HOME=${XDG_DATA_HOME}/minikube
|
|
@ -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
|
||||||
|
|
6
config/bash/bashrc.d/pulumi
Normal file
6
config/bash/bashrc.d/pulumi
Normal 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"
|
4
config/bash/bashrc.d/terminfo
Normal file
4
config/bash/bashrc.d/terminfo
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
## vim: ft=sh :
|
||||||
|
|
||||||
|
export TERMINFO=${XDG_DATA_HOME}/terminfo
|
||||||
|
export TERMINFO_DIRS=${TERMINFO}:/usr/share/terminfo
|
3
config/bash/bashrc.d/vagrant
Normal file
3
config/bash/bashrc.d/vagrant
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
## vim: ft=sh :
|
||||||
|
|
||||||
|
export VAGRANT_HOME=${XDG_DATA_HOME}/vagrant
|
Loading…
Reference in a new issue