splitting into more modular structure

This commit is contained in:
2019-12-08 15:38:09 -08:00
parent ab1ef3fcbb
commit 1762d6246f
8 changed files with 39 additions and 6 deletions

3
.gitmodules vendored Normal file
View File

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

6
bash.d/00-init.sh Normal file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
# shellcheck disable=SC2034
DOTFILES=$( cd "$(dirname "${BASH_SOURCE[0]}")"/.. && pwd || return)
SUBMODULES=$( cd "$DOTFILES/submodules" && pwd)

5
bash.d/10-dotenv.sh Normal file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
function dotenv {
export "$(grep -E -v '^#' .env | xargs)"
}

View File

@@ -0,0 +1 @@
export DOTNET_CLI_TELEMETRY_OPTOUT=1

11
bash.d/10-prompt.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
PROMPT_SUBMODULE="${SUBMODULES}/romkatv-gitstatus"
if ls -A "$PROMPT_SUBMODULE"; then
git submodule init
git submodule update
fi
# shellcheck disable=SC1090
source "$PROMPT_SUBMODULE/gitstatus.prompt.sh"

View File

@@ -1,10 +1,13 @@
[user] [user]
name = Vasili Svirydau name = Vasili Sviridov
email = vsvirydau@copperleaf.com email = vasili@sviridov.ca
[push] [push]
default = simple default = simple
[pull]
rebase = true
[core] [core]
editor = /usr/bin/vim editor = /usr/bin/vim
@@ -23,6 +26,7 @@
[difftool "bcompare"] [difftool "bcompare"]
trustExitCode = true trustExitCode = true
cmd = bcompare "$LOCAL" "$REMOTE" cmd = bcompare \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"
[alias] [alias]
ignore = "!gi() { curl -sL https://www.gitignore.io/api/$@ ;}; gi" ignore = "!gi() { curl -sL https://www.gitignore.io/api/$@ ;}; gi"

View File

@@ -1,5 +1,5 @@
if-shell "uname | grep -q Darwin" "set -g default-command \"reattach-to-user-namespace -l $SHELL\"" if-shell "command -v reattach-to-user-namespace" "set -g default-command \"reattach-to-user-namespace -l $SHELL\""
set -g default-terminal "screen-256color" set -g default-terminal "tmux-256color"
run "~/.dotfiles/tmux.sh" run "~/.dotfiles/tmux.sh"
set -g base-index 1 set -g base-index 1
set -g set-titles on set -g set-titles on
@@ -15,6 +15,8 @@ setw -g automatic-rename on
setw -g monitor-activity on setw -g monitor-activity on
setw -g aggressive-resize on setw -g aggressive-resize on
set -g mouse on
unbind C-a unbind C-a
unbind C-b unbind C-b