Initial commit

This commit is contained in:
Fabian Becker 2021-04-26 10:32:19 +02:00
commit 2ac3e6e6cc
No known key found for this signature in database
GPG Key ID: A8C282BC79C830AC
7 changed files with 134 additions and 0 deletions

2
.tmux.conf Normal file
View File

@ -0,0 +1,2 @@
set -g mouse on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e; send-keys -M'"

7
.tool-versions Normal file
View File

@ -0,0 +1,7 @@
elixir 1.6
kubectl 1.18.2
helm 2.9.1
eksctl 0.2.1
terraform 0.14.6
terragrunt 0.23.31
kustomize 3.10.0

33
.zshenv Normal file
View File

@ -0,0 +1,33 @@
# Default Programs
export BROWSER="chromium"
export EDITOR="nvim"
export PAGER="less"
export VISUAL="$EDITOR"
export FZF_DEFAULT_COMMAND='rg --files --follow --hidden -g "!{node_modules/*,.git/*}"'
# Aliases
alias dc="docker-compose"
alias vim="nvim"
alias v="nvim"
alias wget="wget -q -c -w 3 --show-progress"
alias p="python"
## Second Measure
alias pa="aws-okta exec prod-admin -- "
alias pe="aws-okta exec prod-eng -- "
alias da="aws-okta exec dev-admin -- "
alias de="aws-okta exec dev-eng -- "
alias s3="aws s3"
alias kg="kubectl get "
alias kd="kubectl describe "
alias ke="kubectl edit "
# zsh-autosuggest
bindkey '^ ' autosuggest-accept
## Push command / pop command
#zle-line-init() if [[ $CONTEXT = start ]] LBUFFER=$zle_prefix$LBUFFER
#zle -N zle-line-init
#prime-zle-prefix() zle_prefix=$LBUFFER
#zle -N prime-zle-prefix
#bindkey '\eP' prime-zle-prefix

36
.zshrc Normal file
View File

@ -0,0 +1,36 @@
# Oh My ZSH
ZSH_THEME="robbyrussell"
# Plugins
plugins=(
poetry
git
zsh-autosuggestions
)
export ZSH=$HOME/.oh-my-zsh
source $ZSH/oh-my-zsh.sh
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
export PATH="$HOME/.cargo/bin:$PATH"
export PATH="$HOME/.poetry/bin:$PATH"
export PATH=$PATH:~/.local/bin
# history
HISTFILE=~/.zhistory
HISTSIZE=10000
SAVEHIST=10000
# completion
autoload -Uz compinit
compinit
setopt COMPLETE_ALIASES
# goodies
eval "$(direnv hook zsh)"
eval "$(pyenv init -)"
eval "$(starship init zsh)"
. $HOME/.asdf/asdf.sh
. $HOME/.asdf/completions/asdf.bash

18
apt.sh Normal file
View File

@ -0,0 +1,18 @@
#!/usr/bin/env bash
# Install command line tools
# Update cache
apt update
# Upgrade already installed packages
apt upgrade
# Install packages
apt install -y \
jq \
neovim \
ripgrep \
fzf \
direnv \

17
bootstrap.sh Normal file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
# Install asdf-vm
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.8.0
# Install starship
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
# Link files
ln -s ~/.dotfiles/.zshrc .zshrc
ln -s ~/.dotfiles/.zshenv .zshenv
ln -s ~/.dotfiles/.tool-versions .tool-versions
ln -s ~/.dotfiles/.tmux.conf .tmux.conf
ln -s ~/.dotfiles/.vim .vim
# Source zsh
source ~/.zshrc

21
brew.sh Normal file
View File

@ -0,0 +1,21 @@
#!/bin/bash
# Install command-line tools using Homebrew.
# Make sure were using the latest Homebrew.
brew update
# Upgrade any already-installed formulae.
brew upgrade
# Save Homebrews installed location.
BREW_PREFIX=$(brew --prefix)
brew install git
brew install nvim
brew install ripgrep
brew install fzf
brew install direnv
brew install pyenv
brew install starship
brew install jq