I hereby claim:
- I am markatom on github.
- I am markatom (https://keybase.io/markatom) on keybase.
- I have a public key whose fingerprint is 59E8 0E0D 5AB3 7C71 9D2E 54FE 1643 A9AE 824D 5558
To claim this, I am signing this object:
#!/bin/bash | |
BASE_COMMIT=$1 | |
if [[ -z $BASE_COMMIT ]]; then | |
BASE_COMMIT=$(git rev-list --simplify-by-decoration --max-count 1 --skip 1 HEAD) | |
fi | |
git reset | |
MODIFIED_FILES=$(git status --porcelain | cut -c 4-) | |
for MODIFIED_FILE in $MODIFIED_FILES; do | |
FILE_COMMITS=$(git --no-pager log --format='%H' $BASE_COMMIT..HEAD -- $MODIFIED_FILE) | |
if [[ $(echo "$FILE_COMMITS" | wc -l) -gt 1 ]]; then |
[user] | |
name = John Doe | |
email = [email protected] | |
[core] | |
editor = nano # use what you like | |
[status] | |
showUntrackedFiles = all # show also individual files in untracked directories | |
[push] |
" Cycle metasyntactic variables | |
function! s:CycleMetasyntacticVariables(num) | |
if type(a:num) != type(0) | |
return | |
endif | |
let vars = ['foo', 'bar', 'baz', 'qux', 'quux', 'corge', 'grault', 'garply', 'waldo', 'fred', 'plugh', 'xyzzy', 'thud'] | |
let cvar = expand('<cword>') | |
let i = index(vars, cvar) |
[core] | |
excludesfile = ~/.gitignore | |
editor = nvim | |
pager = BAT_PAGER='less -iRx4' delta -n --theme='darcula' --highlight-removed --hunk-style plain | |
[user] | |
name = Tomáš Markacz | |
email = [email protected] | |
[remote] |
[core] | |
excludesfile = ~/.gitignore | |
editor = nano | |
[user] | |
name = Tomáš Markacz | |
email = [email protected] | |
[pretty] | |
custom = %Cblue%h %Cgreen%an %C(yellow)%ar%Cred%d%n%Creset%s |
local user='%{$fg_bold[green]%}%n@%m%{$reset_color%}' | |
local pwd='%{$fg_bold[blue]%}%~%{$reset_color%}' | |
local return_code='%(?..%{$fg[red]%}%?↵%{$reset_color%})' | |
local git_branch='$(git_prompt_info)$(git_prompt_status)%{$reset_color%}' | |
local privileges='%(!.#.$)' | |
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[magenta]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[blue]%}*%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg_bold[red]%}!%{$reset_color%}" |
if [[ -r /usr/local/lib/python2.7/dist-packages/powerline/bindings/zsh/powerline.zsh ]]; then | |
source /usr/local/lib/python2.7/dist-packages/powerline/bindings/zsh/powerline.zsh | |
fi | |
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
if [ -z $1 ]; then | |
echo Usage: $0 project-name >&2 | |
exit 1 | |
fi | |
CONFIG=$(cat << 'END' | |
<VirtualHost *:80> | |
ServerName %name%.dev |
local user='%{$fg_bold[green]%}%n@%m%{$reset_color%}' | |
local pwd='%{$fg_bold[blue]%}%~%{$reset_color%}' | |
local return_code='%(?..%{$fg[red]%}%?↵%{$reset_color%})' | |
local git_branch='$(git_prompt_info)$(git_prompt_status)%{$reset_color%}' | |
local privileges='%(!.#.$)' | |
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[magenta]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[blue]%}*%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg_bold[red]%}!%{$reset_color%}" |