commit 0f0796d1307ca0ae1e2ebd4a896d73898103f733 Author: Morgan Wattiez Date: Fri Mar 1 09:17:42 2019 +0100 init dotfiles diff --git a/Brewfile b/Brewfile new file mode 100644 index 0000000..0292638 --- /dev/null +++ b/Brewfile @@ -0,0 +1,16 @@ +tap "homebrew/bundle" +tap "homebrew/cask" +tap "homebrew/core" +tap "twpayne/taps" +cask "java" +brew "git-ftp" +brew "gnu-sed" +brew "hugo" +brew "inetutils" +brew "ncftp" +brew "plantuml" +brew "ripgrep" +brew "twpayne/taps/chezmoi" +cask "pgadmin4" +cask "sloth" +brew "node" diff --git a/dot_bash_profile b/dot_bash_profile new file mode 100644 index 0000000..8acce0a --- /dev/null +++ b/dot_bash_profile @@ -0,0 +1,4 @@ + +#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! +export SDKMAN_DIR="/Users/morganwattiez/.sdkman" +[[ -s "/Users/morganwattiez/.sdkman/bin/sdkman-init.sh" ]] && source "/Users/morganwattiez/.sdkman/bin/sdkman-init.sh" diff --git a/dot_gitconfig b/dot_gitconfig new file mode 100644 index 0000000..33ac01f --- /dev/null +++ b/dot_gitconfig @@ -0,0 +1,3 @@ +[user] + name = Morgan Wattiez + email = morgan.wattiez@collibra.com diff --git a/dot_zsh_aliases b/dot_zsh_aliases new file mode 100644 index 0000000..f797fdd --- /dev/null +++ b/dot_zsh_aliases @@ -0,0 +1,25 @@ +# Example aliases +# alias zshconfig="mate ~/.zshrc" +# alias ohmyzsh="mate ~/.oh-my-zsh" +# + +# My custom aliases +alias gcls='git clone --depth 1 --recurse-submodules' +alias cm='chezmoi' +alias grep='rg' +alias npmlist='npm list -g --depth 0' +alias toollist="jira jql \"project = 'Internal Tooling'\"" +alias backlogs="jira jql \"status = New AND project IN (CICD, TOOL) AND Created > -2w ORDER BY Priority DESC\"" +alias backlog=toollist + + +# Show/hide hidden files in Finder +alias show="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder" +alias hide="defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder" + +# Hide/show all desktop icons (useful when presenting) +alias hidedesktop="defaults write com.apple.finder CreateDesktop -bool false && killall Finder" +alias showdesktop="defaults write com.apple.finder CreateDesktop -bool true && killall Finder" + +# Flush Directory Service cache +alias flush="dscacheutil -flushcache && killall -HUP mDNSResponder" diff --git a/dot_zsh_functions b/dot_zsh_functions new file mode 100644 index 0000000..0c62e79 --- /dev/null +++ b/dot_zsh_functions @@ -0,0 +1,24 @@ +function google() { + open -na "Google Chrome" --args "https://www.google.com/search?q=$*" +} +function stackoverflow() { + open -na "Google Chrome" --args "https://www.google.com/search?q=site:stackoverflow.com $*" +} +function github() { + open -na "Google Chrome" --args "https://github.com/search?q=$*" +} +function hacker() { + open -na "Google Chrome" --args "https://hn.algolia.com/?sort=byDate&query=$*" +} +function gmail() { + open -na "Google Chrome" --args "https://mail.google.com/mail/u/0" +} +function gmail2() { + open -na "Google Chrome" --args "https://mail.google.com/mail/u/1" +} +function tooling() { + open -na "Google Chrome" --args "https://issues.collibra.com/secure/RapidBoard.jspa?rapidView=449&projectKey=TOOL&view=planning.nodetail" +} +function issues() { + jira jql "status = Open AND text ~ \"$*\" ORDER BY Created DESC" +} diff --git a/dot_zshrc b/dot_zshrc new file mode 100644 index 0000000..f368a3c --- /dev/null +++ b/dot_zshrc @@ -0,0 +1,99 @@ +# 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/morganwattiez/.oh-my-zsh" + +# Set name of the theme to load --- if set to "random", it will +# load a random theme each time oh-my-zsh is loaded, in which case, +# to know which specific one was loaded, run: echo $RANDOM_THEME +# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes +ZSH_THEME="powerlevel9k/powerlevel9k" + +# Set list of themes to pick from when loading at random +# Setting this variable when ZSH_THEME=random will cause zsh to load +# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/ +# If set to an empty array, this variable will have no effect. +# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) + +# 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 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. +# You can set one of the optional three formats: +# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" +# or set a custom format using the strftime function format specifications, +# see 'man strftime' for details. +# 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? +# Standard 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) + +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`. +. ~/.zsh_aliases +. ~/.zsh_functions + +#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! https://github.com/sdkman/sdkman-cli/issues/613 +export SDKMAN_DIR="$HOME/.sdkman" +[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh" +sdk use java 8.0.202-zulu diff --git a/dot_zshrc.pre-oh-my-zsh b/dot_zshrc.pre-oh-my-zsh new file mode 100644 index 0000000..8acce0a --- /dev/null +++ b/dot_zshrc.pre-oh-my-zsh @@ -0,0 +1,4 @@ + +#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! +export SDKMAN_DIR="/Users/morganwattiez/.sdkman" +[[ -s "/Users/morganwattiez/.sdkman/bin/sdkman-init.sh" ]] && source "/Users/morganwattiez/.sdkman/bin/sdkman-init.sh" diff --git a/private_dot_ssh/config b/private_dot_ssh/config new file mode 100644 index 0000000..ce5454b --- /dev/null +++ b/private_dot_ssh/config @@ -0,0 +1,4 @@ +Host * + AddKeysToAgent yes + UseKeychain yes + IdentityFile ~/.ssh/id_rsa