From: Jannik Zander Date: Thu, 26 May 2016 20:04:23 +0000 (+0200) Subject: Add bash install.sh X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=1e44f1e16f19601c2ee8e4ecb799e9e1ece2332b;p=dotfiles.git Add bash install.sh --- diff --git a/.config/profile/install.sh b/.config/profile/install.sh new file mode 100644 index 0000000..5bdc46b --- /dev/null +++ b/.config/profile/install.sh @@ -0,0 +1,13 @@ +# Install git completion +if [ ! -f "${HOME}/.cache/bash/git-completion.bash" ]; then + URL="https://raw.githubusercontent.com/git/git/master/contrib/completion" + mkdir -p ${HOME}/.cache/bash > /dev/null 2>&1 + curl "${URL}/git-completion.bash" -L -s -o "${HOME}/.cache/bash/git-completion.bash" + curl "${URL}/git-prompt.sh" -L -s -o "${HOME}/.cache/bash/git-prompt.sh" +fi + +# Install fzf +if [ ! -f "${HOME}/.cache/fzf/install" ]; then + git clone --depth 1 https://github.com/junegunn/fzf.git $HOME/.cache/fzf + $HOME/.cache/fzf/install +fi diff --git a/.config/profile/paths.sh b/.config/profile/paths.sh index e643407..2de7134 100644 --- a/.config/profile/paths.sh +++ b/.config/profile/paths.sh @@ -29,7 +29,7 @@ export PREFIX="${HOME}/.local/" # LD_LIBRARY_PATH="${PREFIX}/lib:${LD_LIBRARY_PATH}" # Setup some the location environment variable. -export MYVIMRC="$HOME/.config/vim/vimrc" +#export MYVIMRC="$HOME/.config/vim/vimrc" export INPUTRC="$HOME/.inputrc" export HISTFILE="$HOME/.local/share/bash/history";