updates
This commit is contained in:
parent
3607543e30
commit
3aec37074f
2
aliases
2
aliases
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
# ALIASES
|
# ALIASES
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
|
|
17
bash_paths
17
bash_paths
|
@ -1,18 +1,19 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# adapted based on https://github.com/necolas/dotfiles/blob/master/shell/bash_paths
|
# adapted based on https://github.com/necolas/dotfiles/blob/master/shell/bash_paths
|
||||||
|
|
||||||
# Directories to be prepended to PATH
|
# Directories to be prepended to PATH
|
||||||
declare -a dirs_to_prepend=(
|
declare -a dirs_to_prepend=(
|
||||||
"/usr/local/sbin"
|
"/usr/local/sbin"
|
||||||
"/usr/local/bin" # Ensure that this bin always takes precedence over `/usr/bin`
|
"/usr/local/bin" # Ensure that this bin always takes precedence over `/usr/bin`
|
||||||
"$HOME/.bin"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Directories to be appended to PATH
|
# Directories to be appended to PATH
|
||||||
declare -a dirs_to_append=(
|
declare -a dirs_to_append=(
|
||||||
"/usr/bin"
|
"/usr/bin"
|
||||||
"$(brew --prefix coreutils)/libexec/gnubin" # Add brew-installed GNU core utilities bin
|
"$HOME/.bin"
|
||||||
"$(brew --prefix)/share/npm/bin" # Add npm-installed package bin
|
|
||||||
"$HOME/.rvm/bin"
|
"$HOME/.rvm/bin"
|
||||||
|
"$(brew --prefix node)/bin" # Add npm/yarn-installed package bin
|
||||||
)
|
)
|
||||||
|
|
||||||
# Prepend directories to PATH
|
# Prepend directories to PATH
|
||||||
|
@ -39,3 +40,13 @@ export PATH
|
||||||
|
|
||||||
# define CDPATHs which are autocompleted from when doing cd
|
# define CDPATHs which are autocompleted from when doing cd
|
||||||
export CDPATH=$CDPATH:~/Code:~/Projects
|
export CDPATH=$CDPATH:~/Code:~/Projects
|
||||||
|
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------------
|
||||||
|
# Google Cloud SDK
|
||||||
|
# ----------------------------------------------------------------------
|
||||||
|
|
||||||
|
if [ -s "$HOME/Code/google-cloud-sdk/" ]; then
|
||||||
|
source "$HOME/Code/google-cloud-sdk/path.bash.inc"
|
||||||
|
source "$HOME/Code/google-cloud-sdk/completion.bash.inc"
|
||||||
|
fi
|
||||||
|
|
24
bash_profile
24
bash_profile
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# bash_profile, basically from the whole internet
|
# bash_profile, basically from the whole internet
|
||||||
# and a lot from @necolas, @mathiasbynens & @rtomayko
|
# and a lot from @necolas, @mathiasbynens & @rtomayko
|
||||||
|
@ -41,8 +43,8 @@ for option in autocd globstar; do
|
||||||
done;
|
done;
|
||||||
|
|
||||||
# Add tab completion for many Bash commands
|
# Add tab completion for many Bash commands
|
||||||
if which brew > /dev/null && [ -f "$(brew --prefix)/etc/bash_completion" ]; then
|
if which brew &> /dev/null && [ -f "$(brew --prefix)/share/bash-completion/bash_completion" ]; then
|
||||||
source "$(brew --prefix)/etc/bash_completion";
|
source "$(brew --prefix)/share/bash-completion/bash_completion";
|
||||||
elif [ -f /etc/bash_completion ]; then
|
elif [ -f /etc/bash_completion ]; then
|
||||||
source /etc/bash_completion;
|
source /etc/bash_completion;
|
||||||
fi;
|
fi;
|
||||||
|
@ -57,14 +59,6 @@ complete -o "nospace" -W "Contacts Calendar Dock Finder Mail Safari iTunes Syste
|
||||||
complete -C aws_completer aws
|
complete -C aws_completer aws
|
||||||
|
|
||||||
|
|
||||||
# ----------------------------------------------------------------------
|
|
||||||
# nvm
|
|
||||||
# ----------------------------------------------------------------------
|
|
||||||
|
|
||||||
export NVM_DIR="$HOME/.nvm"
|
|
||||||
. "$(brew --prefix nvm)/nvm.sh"
|
|
||||||
|
|
||||||
|
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
# rvm
|
# rvm
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
|
@ -83,13 +77,3 @@ if [ -f "$HOME/.gnupg/.gpg-agent-info" ] && [ -n "$(pgrep gpg-agent)" ]; then
|
||||||
else
|
else
|
||||||
eval $(gpg-agent --daemon --write-env-file $HOME/.gnupg/.gpg-agent-info)
|
eval $(gpg-agent --daemon --write-env-file $HOME/.gnupg/.gpg-agent-info)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# ----------------------------------------------------------------------
|
|
||||||
# Google Cloud SDK
|
|
||||||
# ----------------------------------------------------------------------
|
|
||||||
|
|
||||||
if [ -s "$HOME/Code/google-cloud-sdk/" ]; then
|
|
||||||
source "$HOME/Code/google-cloud-sdk/path.bash.inc"
|
|
||||||
source "$HOME/Code/google-cloud-sdk/completion.bash.inc"
|
|
||||||
fi
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# bash_prompt, from @mathiasbynens
|
# bash_prompt, from @mathiasbynens
|
||||||
|
@ -109,9 +110,9 @@ else
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
# Set the terminal title to the current working directory.
|
# Set the terminal title to the current working directory.
|
||||||
PS1="\[\033]0;\w\007\]";
|
PS1="\[\033]0;\W\007\]"; # working directory base name
|
||||||
PS1+="\n";
|
PS1+="\n";
|
||||||
PS1+="\[${cyan}\]\w"; # working directory
|
PS1+="\[${cyan}\]\w"; # working directory full path
|
||||||
PS1+="\$(prompt_git \" \[${gray}\]\")"; # Git repository details
|
PS1+="\$(prompt_git \" \[${gray}\]\")"; # Git repository details
|
||||||
PS1+="\n";
|
PS1+="\n";
|
||||||
PS1+="\[${dim}\]→ \[${reset}\]"; # `→` (and reset color)
|
PS1+="\[${dim}\]→ \[${reset}\]"; # `→` (and reset color)
|
||||||
|
|
4
bashrc
4
bashrc
|
@ -1 +1,3 @@
|
||||||
[ -n "$PS1" ] && source ~/.bash_profile
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
[ -n "$PS1" ] && source ~/.bash_profile;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# tputcolors
|
# tputcolors
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# creates symlinks from the home directory to
|
# creates symlinks from the home directory to
|
||||||
# any desired dotfiles in ~/dotfiles
|
# any desired dotfiles in ~/dotfiles
|
||||||
|
|
|
@ -13,11 +13,11 @@
|
||||||
|
|
||||||
echo "$(tput setaf 136)"
|
echo "$(tput setaf 136)"
|
||||||
echo "Update Homebrew "
|
echo "Update Homebrew "
|
||||||
echo "=============================="
|
echo "------------------------------"
|
||||||
echo "$(tput sgr0)" # reset
|
echo "$(tput sgr0)" # reset
|
||||||
|
|
||||||
brew update
|
brew update
|
||||||
brew upgrade --all
|
brew upgrade
|
||||||
brew cleanup
|
brew cleanup
|
||||||
|
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ brew cleanup
|
||||||
|
|
||||||
echo "$(tput setaf 136)"
|
echo "$(tput setaf 136)"
|
||||||
echo "Update npm "
|
echo "Update npm "
|
||||||
echo "============================="
|
echo "------------------------------"
|
||||||
echo "$(tput sgr0)" # reset
|
echo "$(tput sgr0)" # reset
|
||||||
|
|
||||||
# update npm itself
|
# update npm itself
|
||||||
|
@ -42,12 +42,12 @@ npm update -g
|
||||||
|
|
||||||
echo "$(tput setaf 136)"
|
echo "$(tput setaf 136)"
|
||||||
echo "Update rvm "
|
echo "Update rvm "
|
||||||
echo "============================="
|
echo "------------------------------"
|
||||||
echo "$(tput sgr0)" # reset
|
echo "$(tput sgr0)" # reset
|
||||||
|
|
||||||
# update rvm itself
|
# update rvm itself
|
||||||
rvm get stable
|
# rvm get stable
|
||||||
rvm reload
|
# rvm reload
|
||||||
|
|
||||||
# update all gemsets
|
# update all gemsets
|
||||||
rvm gemset update
|
rvm gemset update
|
||||||
|
|
9
brew.sh
9
brew.sh
|
@ -15,7 +15,14 @@ brew upgrade --all
|
||||||
# Install what we need
|
# Install what we need
|
||||||
brew install coreutils
|
brew install coreutils
|
||||||
brew install bash
|
brew install bash
|
||||||
brew install bash-completion
|
brew install bash-completion2
|
||||||
|
|
||||||
|
# Switch to using brew-installed bash as default shell
|
||||||
|
if ! fgrep -q '/usr/local/bin/bash' /etc/shells; then
|
||||||
|
echo '/usr/local/bin/bash' | sudo tee -a /etc/shells;
|
||||||
|
chsh -s /usr/local/bin/bash;
|
||||||
|
fi;
|
||||||
|
|
||||||
brew install git
|
brew install git
|
||||||
brew install node
|
brew install node
|
||||||
brew install wget
|
brew install wget
|
||||||
|
|
4
exports
4
exports
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Set architecture flags
|
# Set architecture flags
|
||||||
export ARCHFLAGS="-arch x86_64"
|
export ARCHFLAGS="-arch x86_64"
|
||||||
|
|
||||||
|
@ -12,4 +14,4 @@ export LSCOLORS=gxfxcxdxbxegedabagacad
|
||||||
# pip should only run if there is a virtualenv currently activated
|
# pip should only run if there is a virtualenv currently activated
|
||||||
export PIP_REQUIRE_VIRTUALENV=true
|
export PIP_REQUIRE_VIRTUALENV=true
|
||||||
# cache pip-installed packages to avoid re-downloading
|
# cache pip-installed packages to avoid re-downloading
|
||||||
export PIP_DOWNLOAD_CACHE=$HOME/.pip/cache
|
export PIP_DOWNLOAD_CACHE=$HOME/.pip/cache
|
||||||
|
|
46
gitconfig
46
gitconfig
|
@ -8,6 +8,8 @@
|
||||||
# name =
|
# name =
|
||||||
|
|
||||||
[user]
|
[user]
|
||||||
|
name = Matthias Kretschmann
|
||||||
|
email = m@kretschmann.io
|
||||||
signingkey = DD7831FC
|
signingkey = DD7831FC
|
||||||
|
|
||||||
[commit]
|
[commit]
|
||||||
|
@ -24,7 +26,7 @@
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
excludesfile = ~/.gitignore
|
excludesfile = ~/.gitignore
|
||||||
quotepath = false
|
quotepath = false
|
||||||
|
|
||||||
# Handle umlauts and such better on OS X
|
# Handle umlauts and such better on OS X
|
||||||
# for whatever crazy reason this explicitly
|
# for whatever crazy reason this explicitly
|
||||||
|
@ -37,48 +39,32 @@
|
||||||
trustctime = false
|
trustctime = false
|
||||||
|
|
||||||
[alias]
|
[alias]
|
||||||
# View abbreviated SHA, description, and history graph of the latest 20 commits
|
c = clone --recursive
|
||||||
l = log --pretty=oneline -n 20 --graph --abbrev-commit
|
co = checkout
|
||||||
ll = log --stat --abbrev-commit
|
l = log --oneline --decorate -15
|
||||||
|
lo = log --oneline --decorate
|
||||||
# View the current working tree status using the short format
|
s = status -s
|
||||||
s = status -s
|
|
||||||
|
|
||||||
# Clone a repository including all submodules
|
|
||||||
c = clone --recursive
|
|
||||||
|
|
||||||
# Amend the currently staged files to the latest commit
|
# Amend the currently staged files to the latest commit
|
||||||
amend = commit --amend --reuse-message=HEAD
|
amend = commit --amend --reuse-message=HEAD
|
||||||
|
|
||||||
# Remove branches that have already been merged with master
|
# Remove branches that have already been merged with master
|
||||||
# a.k.a. ‘delete merged’
|
# a.k.a. ‘delete merged’
|
||||||
dm = "!git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d"
|
dm = "!git branch --merged master | grep -v '\\* master' | xargs -n 1 git branch -d"
|
||||||
|
|
||||||
|
uncommit = reset --soft HEAD^
|
||||||
|
unstage = reset HEAD
|
||||||
|
yolo = push --force
|
||||||
|
|
||||||
[fetch]
|
[fetch]
|
||||||
prune = true
|
prune = true
|
||||||
|
|
||||||
[push]
|
|
||||||
default = current
|
|
||||||
|
|
||||||
[color]
|
[color]
|
||||||
diff = auto
|
diff = auto
|
||||||
status = auto
|
status = auto
|
||||||
branch = auto
|
branch = auto
|
||||||
interactive = auto
|
interactive = auto
|
||||||
ui = auto
|
ui = auto
|
||||||
[color "branch"]
|
|
||||||
current = green bold
|
|
||||||
local = green
|
|
||||||
remote = red bold
|
|
||||||
[color "diff"]
|
|
||||||
meta = yellow bold
|
|
||||||
frag = magenta bold
|
|
||||||
old = red bold
|
|
||||||
new = green bold
|
|
||||||
[color "status"]
|
|
||||||
added = green bold
|
|
||||||
changed = yellow bold
|
|
||||||
untracked = red
|
|
||||||
|
|
||||||
# Set Kaleidoscope as diff and merge tool
|
# Set Kaleidoscope as diff and merge tool
|
||||||
[diff]
|
[diff]
|
||||||
|
@ -95,5 +81,7 @@
|
||||||
cmd = ksdiff --merge --output \"$MERGED\" --base \"$BASE\" -- \"$LOCAL\" --snapshot \"$REMOTE\" --snapshot
|
cmd = ksdiff --merge --output \"$MERGED\" --base \"$BASE\" -- \"$LOCAL\" --snapshot \"$REMOTE\" --snapshot
|
||||||
trustExitCode = true
|
trustExitCode = true
|
||||||
|
|
||||||
[ghi]
|
[filter "lfs"]
|
||||||
token = !security find-internet-password -a kremalicious -s github.com -l 'ghi token' -w
|
clean = git-lfs clean %f
|
||||||
|
smudge = git-lfs smudge %f
|
||||||
|
required = true
|
||||||
|
|
4
inputrc
4
inputrc
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Use case-insensitive TAB autocompletion
|
# Use case-insensitive TAB autocompletion
|
||||||
set completion-ignore-case on
|
set completion-ignore-case on
|
||||||
|
|
||||||
|
@ -26,4 +28,4 @@ set skip-completed-text on
|
||||||
# Allow UTF-8 input and output, instead of showing stuff like $'\0123\0456'
|
# Allow UTF-8 input and output, instead of showing stuff like $'\0123\0456'
|
||||||
set input-meta on
|
set input-meta on
|
||||||
set output-meta on
|
set output-meta on
|
||||||
set convert-meta off
|
set convert-meta off
|
||||||
|
|
2
npm.sh
2
npm.sh
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Installed from brewfile with node
|
# Installed from brewfile with node
|
||||||
|
|
||||||
|
|
2
ruby.sh
2
ruby.sh
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Install RVM
|
# Install RVM
|
||||||
curl -sSL https://get.rvm.io | bash
|
curl -sSL https://get.rvm.io | bash
|
||||||
|
|
|
@ -1,42 +0,0 @@
|
||||||
# Settings
|
|
||||||
|
|
||||||
encoding = UTF-8
|
|
||||||
fontName = "SourceCodePro-Medium"
|
|
||||||
fontSize = 12
|
|
||||||
lineEndings = '\n'
|
|
||||||
showInvisibles = false
|
|
||||||
softWrap = true
|
|
||||||
softTabs = true
|
|
||||||
wrapColumn = "Use Window Frame"
|
|
||||||
tabSize = 4
|
|
||||||
spellChecking = false
|
|
||||||
|
|
||||||
# Hidden Settings, to be executed in Terminal
|
|
||||||
# https://github.com/textmate/textmate/wiki/Hidden-Settings
|
|
||||||
|
|
||||||
# Make file browser a bit more pretty
|
|
||||||
#defaults write com.macromates.TextMate.preview fileBrowserStyle SourceList
|
|
||||||
|
|
||||||
# Font Smoothing always enabled
|
|
||||||
#defaults write com.macromates.TextMate.preview fontSmoothing 1
|
|
||||||
|
|
||||||
# Includes
|
|
||||||
myExtraIncludes = ".tm_properties,.htaccess,.gitignore,.csslintrc,.jshintrc"
|
|
||||||
fileBrowserGlob = "{*,$myExtraIncludes}"
|
|
||||||
include = "{$include,$myExtraIncludes}"
|
|
||||||
|
|
||||||
# Hide directories from search popups.
|
|
||||||
myExtraExcludes = "log,vendor,tmp,generated,dist,build,node_modules,bower_components"
|
|
||||||
excludeInFileChooser = "{$excludeInFileChooser,$myExtraExcludes}"
|
|
||||||
excludeInFolderSearch = "{$excludeInFolderSearch,$myExtraExcludes}"
|
|
||||||
|
|
||||||
# Variables
|
|
||||||
|
|
||||||
TM_FULLNAME = "Matthias Kretschmann"
|
|
||||||
TM_GIT = "/usr/local/bin/git"
|
|
||||||
|
|
||||||
[ text ]
|
|
||||||
spellChecking = true
|
|
||||||
|
|
||||||
[ source.plist ]
|
|
||||||
softTabs = false
|
|
11
webstyle.css
11
webstyle.css
|
@ -13,6 +13,17 @@
|
||||||
Application Support/Google/Chrome/Default/User StyleSheets/Custom.css
|
Application Support/Google/Chrome/Default/User StyleSheets/Custom.css
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/* GITLAB
|
||||||
|
-----------------------------------------*/
|
||||||
|
|
||||||
|
body.ui_charcoal {
|
||||||
|
text-rendering: optimizeLegibility;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
text-shadow: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* GOOGLE SEARCH
|
/* GOOGLE SEARCH
|
||||||
-----------------------------------------*/
|
-----------------------------------------*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue