Kevin Heinicke 9 rokov pred
rodič
commit
2a69c88ea7
7 zmenil súbory, kde vykonal 42 pridanie a 22 odobranie
  1. 3 0
      .gitmodules
  2. 1 0
      dotbot
  3. 14 0
      install
  4. 24 0
      install.conf.yaml
  5. 0 1
      nvim/UltiSnips
  6. 0 1
      nvim/after/ftplugin
  7. 0 20
      zsh_custom/themes/bixel.zsh-theme

+ 3 - 0
.gitmodules

@@ -0,0 +1,3 @@
+[submodule "dotbot"]
+	path = dotbot
+	url = https://github.com/anishathalye/dotbot.git

+ 1 - 0
dotbot

@@ -0,0 +1 @@
+Subproject commit 5babc8f562f9ba1ad3e78b5ec6906aa33d17c0a9

+ 14 - 0
install

@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+
+set -e
+
+CONFIG="install.conf.yaml"
+DOTBOT_DIR="dotbot"
+
+DOTBOT_BIN="bin/dotbot"
+BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
+
+cd "${BASEDIR}"
+git submodule update --init --recursive "${DOTBOT_DIR}"
+
+"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"

+ 24 - 0
install.conf.yaml

@@ -0,0 +1,24 @@
+- clean: ['~']
+
+- shell:
+    - [git submodule update --init --recursive, Installing submodules]
+
+- link:
+    ~/.dotfiles: ''
+    ~/.zpreztorc: zpreztorc
+    ~/.zprofile: zprofile
+    ~/.zshrc: zshrc
+    ~/.nvimrc: nvimrc
+    ~/.vimrc: vimrc
+    ~/.vim/after/ftplugin:
+        create: true
+        path: vim/after/ftplugin/
+    ~/.nvim/after/ftplugin:
+        create: true
+        path: vim/after/ftplugin/
+    ~/.vim/UltiSnips:
+        relink: true
+        path: vim/UltiSnips/
+    ~/.nvim/UltiSnips:
+        relink: true
+        path: vim/UltiSnips/

+ 0 - 1
nvim/UltiSnips

@@ -1 +0,0 @@
-../.vim/UltiSnips

+ 0 - 1
nvim/after/ftplugin

@@ -1 +0,0 @@
-../../.vim/after/ftplugin

+ 0 - 20
zsh_custom/themes/bixel.zsh-theme

@@ -1,20 +0,0 @@
-# vim:ft=zsh ts=2 sw=2 sts=2
-# first approach to simple template using some functions from agnoster theme
-
-# Git: branch/detached head, dirty status
-prompt_git() {
-  local color dirty branch
-  if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then
-    dirty=$(parse_git_dirty)
-    if [[ -n $dirty ]]; then
-      color='yellow'
-    else
-      color='green'
-    fi
-    branch=$(git rev-parse --abbrev-ref HEAD)
-    echo -n "%F{$color}➤ $branch%f"
-  fi
-}
-
-PROMPT='%F{blue}%~%f '
-RPROMPT='$(prompt_git)'