Commit 6fe3cd54 authored by nimrod's avatar nimrod
Browse files

- Refactored Bash completion scripts, the generated parts are during Git

post-merge.
- Moved direnv to .bashrc, it shouldn't have been in .bash_completion.d
to begin with.
- Added a copy of pythonrc.py (from
https://github.com/lonetwin/pythonrc/).
- Generate Python startup script.
- Output during post-merge to stderr.
parent 3a54106e
Loading
Loading
Loading
Loading

.bash_completion.d/direnv

deleted100644 → 0
+0 −8
Original line number Diff line number Diff line
#!/bin/sh

if which direnv > /dev/null
then
    [ -f "$HOME/.bash_completion.d/.direnv" ] || direnv hook bash > "$HOME/.bash_completion.d/.direnv"
    # shellcheck disable=SC1090
    . "$HOME/.bash_completion.d/.direnv"
fi

.bash_completion.d/pandoc

deleted100644 → 0
+0 −1
Original line number Diff line number Diff line
! which pandoc > /dev/null || eval "$(pandoc --bash-completion)"

.bash_completion.d/pipenv

deleted100644 → 0
+0 −8
Original line number Diff line number Diff line
#!/bin/sh

if which pipenv > /dev/null
then
    [ -f "$HOME/.bash_completion.d/.pipenv" ] || pipenv --completion > "$HOME/.bash_completion.d/.pipenv"
    # shellcheck disable=SC1090
    . "$HOME/.bash_completion.d/.pipenv"
fi
+3 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ export PATH="$HOME/Documents/Shore/ssl-ca:$PATH"
export PATH="$HOME/.cargo/bin:$PATH"
export PATH="$HOME/.cabal/bin:$PATH"
export PATH="$HOME/Documents/bin:$PATH"
export PYTHONSTARTUP=~/.pythonstartup
export PYTHONSTARTUP=~/.config/python/startup.py
export AWS_DEFAULT_PROFILE='shore'
export ANSIBLE_VERBOSITY=2
export ANSIBLE_COMMAND_WARNINGS=True
@@ -205,8 +205,10 @@ then
    do
        [ ! -f "$sourcefile" ] || . "$sourcefile"
    done
    ! which direnv > /dev/null || eval $(direnv hook bash)
fi


# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

+561 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading