Some env vars and comments

This commit is contained in:
fanyx 2021-09-23 12:46:32 +02:00
parent 2638f4a240
commit b8a35d17f7
2 changed files with 23 additions and 9 deletions

View File

@ -6,14 +6,14 @@
# xbps-install # xbps-install
# use xtools instead # use xtools instead
# alias xin="doas xbps-install -S" # alias xin="doas xbps-install -S"
alias xup="doas xbps-install -Su" alias xup="xi -Su"
# xbps-query # xbps-query
# alias xq="xbps-query" alias xqr="xbps-query"
# alias xs="xq -Rs" alias xs="xqr -Rs"
alias xqs="xq -S" alias xqs="xqr -S"
alias xqm="xq -m" alias xqm="xqr -m"
alias xql="xq -l" alias xql="xqr -l"
alias xqq="xql | grep ${1}" alias xqq="xql | grep ${1}"
alias xcln="xr -o" alias xcln="xr -o"

View File

@ -13,17 +13,21 @@ PATH=~/.local/bin:$PATH
# - bash_aliases # - bash_aliases
# - bash-completion # - bash-completion
# always bash-completion first
[[ -r /usr/share/bash-completion/bash_completion ]] && . /usr/share/bash-completion/bash_completion [[ -r /usr/share/bash-completion/bash_completion ]] && . /usr/share/bash-completion/bash_completion
# integrate git prompt functions
# will break PS1 if not used
[[ -f /usr/share/git/git-prompt.sh ]] && . /usr/share/git/git-prompt.sh [[ -f /usr/share/git/git-prompt.sh ]] && . /usr/share/git/git-prompt.sh
# source distro and general purpose aliases
[[ -r ~/.bash_aliases ]] && . ~/.bash_aliases [[ -r ~/.bash_aliases ]] && . ~/.bash_aliases
# set PS1 from file
# USE ONLY AFTER GIT PROMPT
[[ -r ~/.ps1 ]] && . ~/.ps1 [[ -r ~/.ps1 ]] && . ~/.ps1
################################# #################################
# Debian Defaults
#
# don't put duplicate lines or lines starting with space in the history. # don't put duplicate lines or lines starting with space in the history.
HISTCONTROL=ignoreboth HISTCONTROL=ignoreboth
@ -41,4 +45,14 @@ shopt -s checkwinsize
# make less more friendly for non-text input files, see lesspipe(1) # make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
eval "$(direnv hook bash)" #################################
# - hooks
command -v direnv &>/dev/null && eval "$(direnv hook bash)"
# - env vars
export XBPS_DISTDIR="/home/hendrik/git/void-packages"
export SVDIR="/home/hendrik/sv"
export HOME="/home/hendrik"
export EDITOR="vim"