home.nix | fix bash-completion
This commit is contained in:
parent
8cb0622228
commit
9450e37a84
1 changed files with 11 additions and 7 deletions
|
|
@ -120,7 +120,7 @@
|
||||||
historyFile = "\$\{HOME\}/.bash_history.\${USER}.\$(hostname -s).\$(tty | sed 's?/dev/pts/??')";
|
historyFile = "\$\{HOME\}/.bash_history.\${USER}.\$(hostname -s).\$(tty | sed 's?/dev/pts/??')";
|
||||||
bashrcExtra =
|
bashrcExtra =
|
||||||
''
|
''
|
||||||
export GOPATH="/home/don/go"
|
export GOPATH="~/go"
|
||||||
export PROMPT_COMMAND='history -a'
|
export PROMPT_COMMAND='history -a'
|
||||||
export EDITOR="nvim"
|
export EDITOR="nvim"
|
||||||
set bell-style visible
|
set bell-style visible
|
||||||
|
|
@ -130,12 +130,16 @@
|
||||||
umask 0007
|
umask 0007
|
||||||
export PAGER=less
|
export PAGER=less
|
||||||
export LESS="-s"
|
export LESS="-s"
|
||||||
#if [ -d /home/don/.bash_completion.d ]; then
|
if [[ ! -v BASH_COMPLETION_VERSINFO ]]; then
|
||||||
#for i in $(ls -1 /home/don/.bash_completion.d/*.sh); do source $i; done
|
. "${pkgs.bash-completion}/etc/profile.d/bash_completion.sh"
|
||||||
#fi
|
fi
|
||||||
test -f "/home/don/.bash_$(hostname -s)" && source /home/don/.bash_$(hostname -s)
|
if [ -d ~/.bash_completion.d ]; then
|
||||||
test -f /home/don/.liquidprompt/liquidprompt && source /home/don/.liquidprompt/liquidprompt
|
for i in $(ls -1 ~/.bash_completion.d/*.sh); do . $i; done
|
||||||
test -f "/home/don/.bash_functions" && source "/home/don/.bash_functions"
|
fi
|
||||||
|
export HOSTNAME_SHORT=$(hostname -s)
|
||||||
|
test -f "~/.bash_$(hostname -s)" && . ~/.bash_$(hostname -s)
|
||||||
|
test -f ~/.liquidprompt/liquidprompt && . ~/.liquidprompt/liquidprompt
|
||||||
|
test -f "~/.bash_functions" && . "~/.bash_functions"
|
||||||
'';
|
'';
|
||||||
profileExtra =
|
profileExtra =
|
||||||
''
|
''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue