From 1e44f1e16f19601c2ee8e4ecb799e9e1ece2332b Mon Sep 17 00:00:00 2001 From: Jannik Zander Date: Thu, 26 May 2016 22:04:23 +0200 Subject: [PATCH] Add bash install.sh --- .config/profile/install.sh | 13 +++++++++++++ .config/profile/paths.sh | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .config/profile/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"; -- 2.43.0