make correct symlink to config

This commit is contained in:
2019-11-05 15:39:52 +01:00
parent 25099fcbdf
commit ce939f8655
16 changed files with 1121 additions and 5 deletions
+73
View File
@@ -0,0 +1,73 @@
# setting defualt editor
set EDITOR vim
# setting PATH for rbenv
# set PATH /usr/local/var/rbenv/shims $PATH
status --is-interactive; and source (rbenv init -|psub)
# setting elixir sepcific stuff
set ERL_AFLAGS "-kernel shell_history enabled"
# disable homebrew phoning home
set HOMEBREW_NO_ANALYTICS 1
# disable 'spring' for Rails development
set DISABLE_SPRING 1
# setting ulimits
ulimit -n 2048
# grep options
set GREP_OPTIONS '--color=auto'
set GREP_COLOR '1;32'
# setting locale
set -x LC_ALL 'en_US.UTF-8'
set -x LANG 'en_US.UTF-8'
# define GOPATH
set -x -U GOPATH $HOME/Documents/workspace_go
# setting GPG
set GPG_TTY /dev/ttys001
# set abbveriations
if status --is-interactive
set -g fish_user_abbreviations
abbr --add wtm 'cd ~/Documents/workspace_tm'
abbr --add obc 'cd ~/Documents/workspace_tm/obc'
abbr --add tix 'cd ~/Documents/workspace_tm/amadeus_api/'
abbr --add gst 'git status'
abbr --add gd 'git diff'
abbr --add ga 'git add .'
abbr --add gl 'git pull'
abbr --add gup 'git fetch && git rebase'
abbr --add gp 'git push'
abbr --add gc 'git commit -v'
abbr --add gc! 'git commit --amend'
abbr --add gca 'git commit -v -a'
abbr --add gco 'git checkout'
abbr --add gb 'git branch'
abbr --add gba 'git branch -a'
abbr --add gcount 'git shortlog -sn'
abbr --add gcp 'git cherry-pick'
abbr --add glg 'git log --stat --max-count=5'
abbr --add bb 'brew update; and brew outdated'
abbr --add bx 'bundle exec'
abbr --add bxrc 'bundle exec rails c'
abbr --add bxrs 'bundle exec rails s'
abbr --add cloud 'cd ~/Library/Mobile\ Documents/com~apple~CloudDocs'
abbr --add pg_start 'pg_ctl -D /usr/local/var/postgresql@9.5 start'
abbr --add pg_stop 'pg_ctl -D /usr/local/var/postgresql@9.5 stop'
abbr --add k 'kubectl'
end
# disable login greeting
set fish_greeting ''
# set -g fish_user_paths "/usr/local/opt/node@10/bin" $fish_user_paths
set -g fish_user_paths "/usr/local/sbin" $fish_user_paths
# add kitty support
# kitty + complete setup fish | source
set -g fish_user_paths "/usr/local/opt/postgresql@9.5/bin" $fish_user_paths
+66
View File
@@ -0,0 +1,66 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR EDITOR:vim
SETUVAR --export --path GOPATH:/Users/michi/Documents/workspace_go
SETUVAR --export LANG:en_US\x2eUTF\x2d8
SETUVAR --export LC_ALL:en_US\x2eUTF\x2d8
SETUVAR __fish_classic_git_prompt_initialized:\x1d
SETUVAR __fish_init_2_39_8:\x1d
SETUVAR __fish_init_2_3_0:\x1d
SETUVAR __fish_init_3_x:\x1d
SETUVAR _fish_abbr_bb:brew\x20update\x3b\x20and\x20brew\x20outdated
SETUVAR _fish_abbr_bx:bundle\x20exec
SETUVAR _fish_abbr_bxrc:bundle\x20exec\x20rails\x20c
SETUVAR _fish_abbr_bxrs:bundle\x20exec\x20rails\x20s
SETUVAR _fish_abbr_cloud:cd\x20\x7e/Library/Mobile\x5c\x20Documents/com\x7eapple\x7eCloudDocs
SETUVAR _fish_abbr_ga:git\x20add\x20\x2e
SETUVAR _fish_abbr_gb:git\x20branch
SETUVAR _fish_abbr_gba:git\x20branch\x20\x2da
SETUVAR _fish_abbr_gc:git\x20commit\x20\x2dv
SETUVAR _fish_abbr_gc_21_:git\x20commit\x20\x2d\x2damend
SETUVAR _fish_abbr_gca:git\x20commit\x20\x2dv\x20\x2da
SETUVAR _fish_abbr_gco:git\x20checkout
SETUVAR _fish_abbr_gcount:git\x20shortlog\x20\x2dsn
SETUVAR _fish_abbr_gcp:git\x20cherry\x2dpick
SETUVAR _fish_abbr_gd:git\x20diff
SETUVAR _fish_abbr_gl:git\x20pull
SETUVAR _fish_abbr_glg:git\x20log\x20\x2d\x2dstat\x20\x2d\x2dmax\x2dcount\x3d5
SETUVAR _fish_abbr_gp:git\x20push
SETUVAR _fish_abbr_gst:git\x20status
SETUVAR _fish_abbr_gup:git\x20fetch\x20\x26\x26\x20git\x20rebase
SETUVAR _fish_abbr_k:kubectl
SETUVAR _fish_abbr_obc:cd\x20\x7e/Documents/workspace_tm/obc
SETUVAR _fish_abbr_pg__start:pg_ctl\x20\x2dD\x20/usr/local/var/postgresql\x409\x2e5\x20start
SETUVAR _fish_abbr_pg__stop:pg_ctl\x20\x2dD\x20/usr/local/var/postgresql\x409\x2e5\x20stop
SETUVAR _fish_abbr_tix:cd\x20\x7e/Documents/workspace_tm/amadeus_api/
SETUVAR _fish_abbr_wtm:cd\x20\x7e/Documents/workspace_tm
SETUVAR fish_color_autosuggestion:93a1a1
SETUVAR fish_color_cancel:\x2dr
SETUVAR fish_color_command:586e75
SETUVAR fish_color_comment:93a1a1
SETUVAR fish_color_cwd:green
SETUVAR fish_color_cwd_root:red
SETUVAR fish_color_end:268bd2
SETUVAR fish_color_error:dc322f
SETUVAR fish_color_escape:bryellow\x1e\x2d\x2dbold
SETUVAR fish_color_history_current:\x2d\x2dbold
SETUVAR fish_color_host:normal
SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue
SETUVAR fish_color_normal:normal
SETUVAR fish_color_operator:bryellow
SETUVAR fish_color_param:657b83
SETUVAR fish_color_quote:839496
SETUVAR fish_color_redirection:6c71c4
SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
SETUVAR fish_color_status:red
SETUVAR fish_color_user:brgreen
SETUVAR fish_color_valid_path:\x2d\x2dunderline
SETUVAR fish_greeting:
SETUVAR fish_key_bindings:fish_default_key_bindings
SETUVAR fish_pager_color_completion:\x1d
SETUVAR fish_pager_color_description:B3A06D\x1eyellow
SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
SETUVAR fish_user_abbreviations:\x1d
SETUVAR fish_user_paths:/usr/local/opt/postgresql\x409\x2e5/bin\x1e/usr/local/sbin\x1e/Users/michi/\x2efzf/bin
+3
View File
@@ -0,0 +1,3 @@
function az_web --description 'Use az web'
az aks browse --name aks-$argv --resource-group $argv
end
+52
View File
@@ -0,0 +1,52 @@
function _git_branch_name
echo (git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||')
end
function _is_git_dirty
echo (git status -s --ignore-submodules=dirty ^/dev/null)
end
function _rb_prompt
echo (rbenv version | awk '{print $1}')
end
function _kb_context
kubectl config current-context 2> /dev/null
if [ (test $status -eq 0) ]
echo (kubectl config current-context | awk '{print $1}')
end
end
function fish_prompt
set -l cyan (set_color -o cyan)
set -l magenta (set_color -o magenta)
set -l yellow (set_color -o yellow)
set -l red (set_color -o red)
set -l blue (set_color -o blue)
set -l normal (set_color normal)
set -l arrow "$magenta$normal"
# set -l arrow "$red↪ $normal"
set -l cwd $cyan(pwd|sed "s=$HOME=~=")
if [ (_kb_context) ]
set -l kb_context $yellow(_kb_context)
set kube_context "|$kb_context"
end
set -l ruby_version $magenta(_rb_prompt)
set -l ruby_version "[$ruby_version$normal$kube_context$normal] in "
if [ (_git_branch_name) ]
set -l git_branch $red(_git_branch_name)
set git_info "$normal on $blue$git_branch$blue"
if [ (_is_git_dirty) ]
set -l dirty "$yellow"
set git_info "$git_info$dirty"
end
end
echo -s $ruby_version $cwd $git_info $normal \n $arrow " "
end
@@ -0,0 +1,3 @@
function fish_user_key_bindings
fzf_key_bindings
end
+1
View File
@@ -0,0 +1 @@
/Users/michi/.fzf/shell/key-bindings.fish
+3
View File
@@ -0,0 +1,3 @@
function gdiff
git log --graph --pretty=format:'%Cred%h%Creset - %s %Creset' --abbrev-commit origin/$argv[2]..origin/$argv[1]
end
+3
View File
@@ -0,0 +1,3 @@
function kc --description 'switch context to dev, int or prod'
kubectl config use-context aks-$argv
end
+3
View File
@@ -0,0 +1,3 @@
function ks --description 'show cluster status for dev, int or prod'
az aks show --resource-group $argv --name aks-$argv --output table
end
+3
View File
@@ -0,0 +1,3 @@
function wtm
cd ~/Documents/workspace_tm
end
+4
View File
@@ -0,0 +1,4 @@
function yy --description 'Use youtube-dl'
youtube-dl -f 'bestvideo[ext!=webm]+bestaudio[ext!=webm]/best[ext!=webm]' $argv
end