splitting into more modular structure
This commit is contained in:
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal 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
6
bash.d/00-init.sh
Normal 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
5
bash.d/10-dotenv.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
function dotenv {
|
||||
export "$(grep -E -v '^#' .env | xargs)"
|
||||
}
|
||||
1
bash.d/10-no-ms-spying.sh
Normal file
1
bash.d/10-no-ms-spying.sh
Normal file
@@ -0,0 +1 @@
|
||||
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
||||
11
bash.d/10-prompt.sh
Normal file
11
bash.d/10-prompt.sh
Normal 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"
|
||||
12
gitconfig
12
gitconfig
@@ -1,10 +1,13 @@
|
||||
[user]
|
||||
name = Vasili Svirydau
|
||||
email = vsvirydau@copperleaf.com
|
||||
name = Vasili Sviridov
|
||||
email = vasili@sviridov.ca
|
||||
|
||||
[push]
|
||||
default = simple
|
||||
|
||||
[pull]
|
||||
rebase = true
|
||||
|
||||
[core]
|
||||
editor = /usr/bin/vim
|
||||
|
||||
@@ -23,6 +26,7 @@
|
||||
|
||||
[difftool "bcompare"]
|
||||
trustExitCode = true
|
||||
cmd = bcompare "$LOCAL" "$REMOTE"
|
||||
cmd = bcompare \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"
|
||||
|
||||
[alias]
|
||||
ignore = "!gi() { curl -sL https://www.gitignore.io/api/$@ ;}; gi"
|
||||
ignore = "!gi() { curl -sL https://www.gitignore.io/api/$@ ;}; gi"
|
||||
|
||||
1
submodules/romkatv-gitstatus
Submodule
1
submodules/romkatv-gitstatus
Submodule
Submodule submodules/romkatv-gitstatus added at 7d9f0d0db3
@@ -1,5 +1,5 @@
|
||||
if-shell "uname | grep -q Darwin" "set -g default-command \"reattach-to-user-namespace -l $SHELL\""
|
||||
set -g default-terminal "screen-256color"
|
||||
if-shell "command -v reattach-to-user-namespace" "set -g default-command \"reattach-to-user-namespace -l $SHELL\""
|
||||
set -g default-terminal "tmux-256color"
|
||||
run "~/.dotfiles/tmux.sh"
|
||||
set -g base-index 1
|
||||
set -g set-titles on
|
||||
@@ -15,6 +15,8 @@ setw -g automatic-rename on
|
||||
setw -g monitor-activity on
|
||||
setw -g aggressive-resize on
|
||||
|
||||
set -g mouse on
|
||||
|
||||
unbind C-a
|
||||
unbind C-b
|
||||
|
||||
|
||||
Reference in New Issue
Block a user