Last active
June 24, 2021 20:00
-
-
Save jakubkalicki/a6400eb7d3fb09fe0fce5a222f51ddd5 to your computer and use it in GitHub Desktop.
[Config files] Personal configuration files
This file contains 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
# Setup SSH | |
eval $(ssh-agent -s) | |
ssh-add ~/.ssh/github | |
# Tool allowing to clean git repository history | |
alias bfg='java -jar C:/bfg-repo-cleaner/bfg-1.13.0.jar' |
This file contains 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
# Specify name and email per repository using commands: | |
# git config user.name "Jakub Kalicki" | |
# git config user.email jakub.kalicki@tacton.com | |
# git config user.email jakub.kalicki@protonmail.com | |
# Paste this inclusion to global .gitconfig with path to this file | |
# [include] path = C:/workspace-intellij/git-settings/config/.gitconfig | |
[rerere] | |
enabled = 1 | |
autoupdate = 1 | |
[alias] | |
s = status | |
co = checkout | |
pr = pull --rebase | |
# Pretty-print logs | |
glog = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' | |
# Delete local branches, which were deleted at remote | |
prune = fetch --prune | |
# Update current branch | |
up = !git checkout develop && git pr && git checkout - && git rebase develop | |
# Merge to develop - note that HEAD@{1} is refering to previous action listed in reflog | |
todev = !git checkout develop && git merge HEAD@{1} | |
# Update forked develop branch | |
upfork = !git checkout develop && git pr upstream develop && git push | |
# Update forked develop branch and rebase current one with latest changes from develop | |
sync = !git upfork && git checkout - && git rebase develop |
This file contains 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
" Set font for gVim | |
set guifont=Consolas:h11:cANSI | |
" Set 'nocompatible' to ward off unexpected things that your distro might | |
" have made, as well as sanely reset options when re-sourcing .vimrc | |
set nocompatible | |
" Attempt to determine the type of a file based on its name and possibly its | |
" contents. Use this to allow intelligent auto-indenting for each filetype, | |
" and for plugins that are filetype specific. | |
filetype indent plugin on | |
" When indenting with '>', use 4 spaces width | |
set shiftwidth=4 | |
" Show existing tab with 4 spaces width | |
set tabstop=4 | |
" Enable syntax highlighting | |
syntax on | |
" Enable current line highlighting | |
set cursorline | |
" Display line number | |
set number | |
" Set language | |
set langmenu=en | |
let $LANG = 'en' | |
source $VIMRUNTIME/delmenu.vim | |
source $VIMRUNTIME/menu.vim | |
" Turn off bell sound | |
set visualbell | |
" Allow saving of files as sudo when I forgot to start vim using sudo. | |
cmap w!! w !sudo tee > /dev/null % |
This file contains 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
# -------------------- Powerlevel10k - PROMPT --------------------- | |
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
fi | |
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
# Initialization code that may require console input (password prompts, [y/n] | |
# confirmations, etc.) must go above this block; everything else may go below | |
# --------------------------- PATH ------------------------------- | |
export PATH="/usr/local/opt/python@3.8/bin:$PATH" | |
export PATH="/Users/jakub.kalicki/_scripts:$PATH" | |
export PATH="/Users/jakub.kalicki/go/bin:$PATH" | |
# ---------------------- Google Cloud SDK ------------------------- | |
if [ -f '/Users/jakub.kalicki/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/jakub.kalicki/google-cloud-sdk/path.zsh.inc'; fi | |
if [ -f '/Users/jakub.kalicki/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/jakub.kalicki/google-cloud-sdk/completion.zsh.inc'; fi | |
# -------------------------- SDKMAN ------------------------------- | |
export SDKMAN_DIR="/Users/jakub.kalicki/.sdkman" | |
[[ -s "/Users/jakub.kalicki/.sdkman/bin/sdkman-init.sh" ]] && source "/Users/jakub.kalicki/.sdkman/bin/sdkman-init.sh" | |
# ------------------------- oh-my-zsh ----------------------------- | |
# Installation folder | |
export ZSH="/Users/jakub.kalicki/.oh-my-zsh" | |
# $ZSH/plugins/ - standard plugins | |
# $ZSH_CUSTOM/plugins/ - custom plugins can be added here | |
plugins=( | |
git | |
zsh-autosuggestions | |
zsh-syntax-highlighting | |
enhancd | |
) | |
# Enable oh-my-zsh | |
source $ZSH/oh-my-zsh.sh | |
# ----------------------- Powerlevel10k --------------------------- | |
source ~/.oh-my-zsh/custom/themes/powerlevel10k/powerlevel10k.zsh-theme | |
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh | |
# ------------------------ Fuzzy Finder --------------------------- | |
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh | |
# -------------------------- Aliases ------------------------------ | |
alias zshconfig="code ~/.zshrc" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment