Last active
March 29, 2018 18:04
-
-
Save hpohlmeyer/625040453572c28c58b07b7cb180ac34 to your computer and use it in GitHub Desktop.
dotfiles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Henning Pohlmeyer | |
email = [email protected] | |
[alias] | |
# Basics | |
co = checkout | |
ci = commit | |
cm = commit -m | |
st = status | |
br = branch | |
# Fixing mistakes | |
amend = commit --amend --no-edit | |
undo = reset --soft HEAD^ # Undo last commit but keep changes in index | |
wait = reset HEAD # Unstage every staged file | |
abort = checkout . # Delete changes in the working directory | |
# Logs | |
lg = log --pretty=oneline --abbrev-commit --graph --decorate | |
timelog = !git log --pretty=format:'- %s' --author='Pohlmeyer' --since='16 hours' | tee /dev/tty | pbcopy && echo "\n" | |
recent = for-each-ref --count=10 --sort=-committerdate refs/heads/ --format="%(refname:short)" | |
overview = log --all --since='1 week' --oneline --no-merges | |
# Branch handling | |
branches = "!sh -c \"git checkout $(git for-each-ref --sort='-authordate:iso8601' --format=' %(authordate:relative)%09%(refname:short)' refs/heads | pick | cut -f2)\"" | |
brs = !git branches | |
delete-merged="!git branch --merged | grep -v \"^\\s*master$\" | grep -v \"\\*\" | xargs -n 1 git branch -d" | |
# Rebasing | |
rb = "!sh -c \"git rebase -i HEAD~$1\" -" | |
# List aliases | |
aliases = !git config --get-regexp ^alias\\. | sed -e s/^alias\\.// -e s/\\ /\\ =\\ / | |
# See: https://git-scm.com/docs/git-config#git-config-pushdefault | |
[push] | |
default = current |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/henno/.oh-my-zsh | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
ZSH_THEME="robbyrussell" | |
# Uncomment the following line to use case-sensitive completion. | |
# CASE_SENSITIVE="true" | |
# Uncomment the following line to use hyphen-insensitive completion. Case | |
# sensitive completion must be off. _ and - will be interchangeable. | |
# HYPHEN_INSENSITIVE="true" | |
# Uncomment the following line to disable bi-weekly auto-update checks. | |
# DISABLE_AUTO_UPDATE="true" | |
# Uncomment the following line to if to update automatically without prompting you | |
DISABLE_UPDATE_PROMPT=true | |
# Uncomment the following line to change how often to auto-update (in days). | |
# export UPDATE_ZSH_DAYS=13 | |
# Uncomment the following line to disable colors in ls. | |
# DISABLE_LS_COLORS="true" | |
# Uncomment the following line to disable auto-setting terminal title. | |
# DISABLE_AUTO_TITLE="true" | |
# Uncomment the following line to enable command auto-correction. | |
# ENABLE_CORRECTION="true" | |
# Uncomment the following line to display red dots whilst waiting for completion. | |
# COMPLETION_WAITING_DOTS="true" | |
# Uncomment the following line if you want to disable marking untracked files | |
# under VCS as dirty. This makes repository status check for large repositories | |
# much, much faster. | |
# DISABLE_UNTRACKED_FILES_DIRTY="true" | |
# Uncomment the following line if you want to change the command execution time | |
# stamp shown in the history command output. | |
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" | |
# HIST_STAMPS="mm/dd/yyyy" | |
# Would you like to use another custom folder than $ZSH/custom? | |
# ZSH_CUSTOM=/path/to/new-custom-folder | |
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | |
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | |
# Example format: plugins=(rails git textmate ruby lighthouse) | |
# Add wisely, as too many plugins slow down shell startup. | |
plugins=(git jsontools npm z extract zsh-autosuggestions) | |
source $ZSH/oh-my-zsh.sh | |
# User configuration | |
# export MANPATH="/usr/local/man:$MANPATH" | |
# You may need to manually set your language environment | |
# export LANG=en_US.UTF-8 | |
# Preferred editor for local and remote sessions | |
# if [[ -n $SSH_CONNECTION ]]; then | |
# export EDITOR='vim' | |
# else | |
# export EDITOR='mvim' | |
# fi | |
# Compilation flags | |
# export ARCHFLAGS="-arch x86_64" | |
# ssh | |
# export SSH_KEY_PATH="~/.ssh/rsa_id" | |
# Set personal aliases, overriding those provided by oh-my-zsh libs, | |
# plugins, and themes. Aliases can be placed here, though oh-my-zsh | |
# users are encouraged to define aliases within the ZSH_CUSTOM folder. | |
# For a full list of active aliases, run `alias`. | |
# | |
# Example aliases | |
# alias zshconfig="mate ~/.zshrc" | |
# alias ohmyzsh="mate ~/.oh-my-zsh" | |
alias hide-desktop="defaults write com.apple.finder CreateDesktop false && killall Finder" | |
alias show-desktop="defaults write com.apple.finder CreateDesktop true && killall Finder" | |
# Add zsh-syntax-highlighting | |
# https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md | |
# http://jilles.me/badassify-your-terminal-and-shell/ | |
source ~/.oh-my-zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | |
# Pure prompt | |
# See https://github.com/sindresorhus/pure for more infos | |
autoload -U promptinit; promptinit | |
prompt pure |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "" | |
echo "Updating homebrew …" | |
brew update | |
brew upgrade | |
brew cleanup | |
brew cask cleanup | |
brew doctor | |
echo "" | |
echo "Updating global npm packages …" | |
npm update -g | |
echo "" | |
echo "Remember to run \"npm run cache verify\" from time to time." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Platzieren Sie Ihre Einstellungen in dieser Datei, um die Standardeinstellungen zu überschreiben. | |
{ | |
"explorer.openEditors.visible": 0, | |
"explorer.confirmDragAndDrop": false, | |
"workbench.iconTheme": "Monokai Pro (Filter Octagon) Icons", | |
"workbench.colorTheme": "Monokai Pro (Filter Octagon)", | |
"workbench.startupEditor": "newUntitledFile", | |
"window.zoomLevel": 0, | |
// ––––––––––––––––––––––––––––––––––––––––––––––––––– | |
// Search | |
// Configure glob patterns for excluding files and folders in searches. | |
// Inherits all glob patterns from the files.exclude setting. | |
"search.exclude": { | |
"**/build": true, | |
"**/node_modules": true, | |
"**/bower_components": true | |
}, | |
// Use .gitignore when searching | |
"search.useIgnoreFiles": true, | |
// ––––––––––––––––––––––––––––––––––––––––––––––––––– | |
// Editor | |
// Default font size in pixels | |
"editor.fontSize": 14, | |
// Default tab size in spaces | |
"editor.tabSize": 2, | |
// Disable the minimap | |
"editor.minimap.enabled": false, | |
// Font size of the tooltip suggestions | |
"editor.suggestFontSize": 12, | |
// Show indent guides | |
"editor.renderIndentGuides": false, | |
// Prevent interference with the Subtle match brackets extension | |
"editor.matchBrackets": false, | |
// Render whitespace | |
"editor.renderWhitespace": "all", | |
// ––––––––––––––––––––––––––––––––––––––––––––––––––– | |
// Emmet | |
// Add emmet support for vue files | |
"emmet.syntaxProfiles": { | |
"vue-html": "html" | |
}, | |
// ––––––––––––––––––––––––––––––––––––––––––––––––––– | |
// ESLint | |
// Enable validation for the following file types | |
"eslint.validate": [ | |
"javascript", | |
"javascriptreact", | |
"vue", | |
"html" | |
], | |
// ––––––––––––––––––––––––––––––––––––––––––––––––––– | |
// NPM Intellisense | |
// Scan dev dependencies | |
"npm-intellisense.scanDevDependencies": true, | |
// Only show tracked files on the git badge | |
"git.countBadge": "tracked", | |
// ––––––––––––––––––––––––––––––––––––––––––––––––––– | |
// Git | |
// Show whitespace changes in diff | |
"diffEditor.ignoreTrimWhitespace": false, | |
// ––––––––––––––––––––––––––––––––––––––––––––––––––– | |
// Vetur (Vue.js) | |
// Indent script and style by one tab | |
"vetur.format.scriptInitialIndent": true, | |
"vetur.format.styleInitialIndent": true, | |
// ––––––––––––––––––––––––––––––––––––––––––––––––––– | |
// Git Lens | |
// Disable distracting end of line comments | |
"gitlens.blame.line.enabled": false, | |
// Only show codelens blame info on top of the file. | |
"gitlens.codeLens.locations": [ | |
"document" | |
], | |
// ––––––––––––––––––––––––––––––––––––––––––––––––––– | |
// Prettier | |
// Fit code within this line limit | |
"prettier.printWidth": 100, | |
// If true, will use single instead of double quotes | |
"prettier.singleQuote": true, | |
// Controls the printing of trailing commas wherever possible. | |
// Valid options: | |
// 'none' - No trailing commas | |
// 'es5' - Trailing commas where valid in ES5 (objects, arrays, etc) | |
// 'all' - Trailing commas wherever possible (function arguments) | |
"prettier.trailingComma": "es5", | |
"gitlens.codeLens.scopes": [ | |
"document" | |
], | |
"gitlens.currentLine.enabled": false, | |
"gitlens.hovers.currentLine.enabled": false, | |
"gitlens.keymap": "chorded" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment