Some changes from work machine

This commit is contained in:
Vasili Svirydau
2021-11-16 20:33:23 +00:00
committed by Vasili Svirydau
parent 6b2245dd16
commit e743c663ac
9 changed files with 50 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
#!/bin/bash
export ELASTIC_APM_DISABLE_SEND=true

View File

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

View File

@@ -9,3 +9,7 @@ fi
if [ -e "$HOME/.bin" ]; then if [ -e "$HOME/.bin" ]; then
export PATH="$HOME/.bin:$PATH" export PATH="$HOME/.bin:$PATH"
fi fi
if [ -w "$HOME/go/bin" ]; then
export PATH="$HOME/go/bin:$PATH"
fi

View File

@@ -3,3 +3,15 @@
function gr() { function gr() {
cd "$(git rev-parse --show-toplevel)" || return cd "$(git rev-parse --show-toplevel)" || return
} }
function tdd() {
set +e
path=$1
shift
echo "Path: \"$path\""
echo "Command: \"$@\""
while [[ $? == 0 ]]
inotifywait -r "$path" -e create -qq;
eval "$@"
do echo $?; done;
}

11
bash.d/20-nvm.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
if test -d ~/.nvm; then
NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
export NVM_DIR
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
fi
function dotfiles_install_nvm() {
git clone git@github.com:nvm-sh/nvm.git ~/.nvm
}

9
bash.d/20-rbenv.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
if command -v rbenv > /dev/null; then
eval "$(rbenv init -)"
fi
function dotfiles_install_rbenv {
sudo apt install rbenv
}

3
bash.d/30-dotnet-env.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
export ASPNETCORE_ENVIRONMENT=Development

View File

@@ -1,2 +1,6 @@
[elixir] [elixir]
disabled=true disabled=true
[kubernetes]
disabled=false
# format = 'on [⛵ $context \($namespace\)](dimmed green) '

View File

@@ -29,4 +29,7 @@
ignore = "!gi() { curl -sL https://www.gitignore.io/api/$@ ;}; gi" ignore = "!gi() { curl -sL https://www.gitignore.io/api/$@ ;}; gi"
[rebase] [rebase]
instructionFormat = (%an <%ae>) %s instructionFormat = (%an <%ae>) %s
[pull]
rebase = true
ff = only