]> git.zndr.dk Git - dotfiles.git/commitdiff
Add bash install.sh
authorJannik Zander <jannikz@gmail.com>
Thu, 26 May 2016 20:04:23 +0000 (22:04 +0200)
committerJannik Zander <jannikz@gmail.com>
Thu, 26 May 2016 20:04:23 +0000 (22:04 +0200)
.config/profile/install.sh [new file with mode: 0644]
.config/profile/paths.sh

diff --git a/.config/profile/install.sh b/.config/profile/install.sh
new file mode 100644 (file)
index 0000000..5bdc46b
--- /dev/null
@@ -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
index e643407d71c3e655400b10d9572945cd6573207d..2de7134570344a51586caca5f967fe1677588843 100644 (file)
@@ -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";