From aaefcca601e74cea35e787a2e2320a42673a236a Mon Sep 17 00:00:00 2001 From: fanyx Date: Wed, 26 May 2021 16:13:50 +0200 Subject: [PATCH] idk, some updates, pls work --- .debian.bash_aliases | 3 ++- .debian.bashrc | 9 +++++++-- .void.bashrc | 4 ++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.debian.bash_aliases b/.debian.bash_aliases index 5ecacb5..7c3010a 100644 --- a/.debian.bash_aliases +++ b/.debian.bash_aliases @@ -6,7 +6,6 @@ # apt _completion_loader apt alias a="sudo apt" -complete -F _apt a alias aql="sudo dpkg -l" alias aqh="sudo apt-mark showhold" @@ -28,3 +27,5 @@ function aupg { ;; esac } + +complete -F _apt a diff --git a/.debian.bashrc b/.debian.bashrc index c5b3d0f..2516ff5 100644 --- a/.debian.bashrc +++ b/.debian.bashrc @@ -11,12 +11,12 @@ # - bash_aliases # - bash-completion -[[ -r ~/.bash_aliases ]] && . ~/.bash_aliases - [[ -r /usr/share/bash-completion/bash_completion ]] && . /usr/share/bash-completion/bash_completion [[ -f /etc/bash_completion.d/git-prompt ]] && . /etc/bash_completion.d/git-prompt +[[ -r ~/.bash_aliases ]] && . ~/.bash_aliases + [[ -r ~/.ps1 ]] && . ~/.ps1 ################################# @@ -38,3 +38,8 @@ shopt -s checkwinsize # make less more friendly for non-text input files, see lesspipe(1) [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" + +################################# +# direnv +# put at end of .rc +eval "$(direnv hook bash)" diff --git a/.void.bashrc b/.void.bashrc index f40d0f9..49b1952 100644 --- a/.void.bashrc +++ b/.void.bashrc @@ -11,12 +11,12 @@ # - bash_aliases # - bash-completion -[[ -r ~/.bash_aliases ]] && . ~/.bash_aliases - [[ -r /usr/share/bash-completion/bash_completion ]] && . /usr/share/bash-completion/bash_completion [[ -f /usr/share/git/git-prompt.sh ]] && . /usr/share/git/git-prompt.sh +[[ -r ~/.bash_aliases ]] && . ~/.bash_aliases + [[ -r ~/.ps1 ]] && . ~/.ps1 #################################