clone of my dotfiles.ssp.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

restructure zsh configs and smaller changes on vim, java

sspaeti ddb00d08 59d04cce

+255 -11
+1
.gitignore
··· 1 1 2 2 obsidian/workspace 3 + zsh/.secrets
+2
Brewfile
··· 29 29 brew "nativefier" 30 30 brew "neovim", args: ["HEAD"] 31 31 brew "okteto" 32 + brew "openjdk" 32 33 brew "openjdk@17" 33 34 brew "openssl@3" 34 35 brew "pandoc" ··· 80 81 cask "spotify" 81 82 cask "sync" 82 83 cask "textmate" 84 + cask "tuple" 83 85 cask "visual-studio-code" 84 86 cask "vlc" 85 87 cask "whatsapp"
+6 -1
backup_dotfiles.sh
··· 21 21 cp -r ~/.fzf/* $git/general/dotfiles/fzf/ 22 22 23 23 #cp -r ~/.oh-my-zsh/custom/* $git/general/dotfiles/zsh/custom/ 24 - cp -r ~/.aliases.shrc $git/general/dotfiles/zsh/aliases.shrc 24 + cp -r ~/.zshrc $git/general/dotfiles/zsh/zshrc 25 + cp -r ~/.dotfiles/zsh/.secrets $git/general/dotfiles/zsh/.secrets 26 + cp -r ~/.dotfiles/zsh/aliases.shrc $git/general/dotfiles/zsh/aliases.shrc 27 + cp -r ~/.dotfiles/zsh/paths.shrc $git/general/dotfiles/zsh/paths.shrc 28 + cp -r ~/.dotfiles/zsh/configs.shrc $git/general/dotfiles/zsh/configs.shrc 29 + cp -r ~/.dotfiles/zsh/end.shrc $git/general/dotfiles/zsh/end.shrc 25 30 26 31 #obsidian 27 32 cp ~/Simon/Sync/SecondBrain/.obsidian/workspace $git/general/dotfiles/obsidian/workspace
+2
git/gitconfig
··· 48 48 edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; vim `f`" 49 49 # add conflicted file on merge 50 50 add-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; git add `f`" 51 + [hub] 52 + protocol = https
+39 -10
nvim/init.vim
··· 26 26 Plug 'christoomey/vim-system-copy' 27 27 "Plug 'valloric/youcompleteme' 28 28 Plug 'tpope/vim-surround' " Surrounding ysw) 29 + 30 + "Text Objects: 31 + "Utilities for user-defined text objects 32 + Plug 'kana/vim-textobj-user' 33 + "Text objects for indentation levels 34 + Plug 'kana/vim-textobj-indent' 35 + "Text objects for Python 36 + Plug 'bps/vim-textobj-python' 37 + 38 + " comment healper 39 + " Plug 'preservim/nerdcommenter' 40 + 29 41 "Plug 'ambv/black' 30 42 Plug 'psf/black', { 'branch': 'stable' } 31 43 Plug 'tpope/vim-fugitive' ··· 140 152 let g:coc_global_extensions = ['coc-json', 'coc-git'] 141 153 nnoremap <Leader>tg :CocCommand git.toggleGutters<CR> " toggle coc-git gutter 142 154 155 + " This will run a python file by hitting 'enter' and debug it directly in 156 + " debug mode with -i 157 + "FileType settings {{{ 158 + augroup mb_filetype 159 + autocmd! 160 + autocmd FileType brainfuck xmap <buffer> R "xygv*;%s;;<c-r>x;g<left><left> 161 + autocmd FileType yaml nnoremap <buffer> <CR> :AnsibleDoc<CR> 162 + autocmd FileType python iabbrev <buffer> im import 163 + autocmd FileType python iabbrev <buffer> rt return 164 + autocmd FileType python iabbrev <buffer> yl yield 165 + autocmd FileType python iabbrev <buffer> fa False 166 + autocmd FileType python iabbrev <buffer> tr True 167 + autocmd FileType python iabbrev <buffer> br break 168 + autocmd FileType python nnoremap <buffer> <cr> :silent w<bar>only<bar>vsp<bar>term ipython3 -i %<cr> 169 + augroup 170 + "}}} 171 + 143 172 " jedi - shortcuts -> replced with coc 144 173 " let g:jedi#goto_command = "<leader>d" 145 174 " let g:jedi#goto_assignments_command = "<leader>g" ··· 151 180 " let g:jedi#rename_command = "<leader>r" 152 181 153 182 " PEP 8 indentation 154 - au BufNewFile,BufRead *.py 155 - \ set tabstop=4 156 - \ set softtabstop=4 157 - \ set shiftwidth=4 158 - \ set textwidth=79 159 - \ set expandtab 160 - \ set autoindent 161 - \ set fileformat=unix 183 + " au BufNewFile,BufRead *.py 184 + " \ set tabstop=4 185 + " \ set softtabstop=4 186 + " \ set shiftwidth=4 187 + " \ set textwidth=79 188 + " \ set expandtab 189 + " \ set autoindent 190 + " \ set fileformat=unix 162 191 163 192 " Other Languages and indentaion 164 193 au BufNewFile,BufRead *.js, *.html, *.css ··· 261 290 "nnoremap <leader>n :NERDTreeFocus<CR> 262 291 "nnoremap <C-n> :NERDTree<CR> 263 292 nnoremap <C-l> :NERDTreeToggle<CR> 264 - nmap <leader>l :NERDTreeToggle<CR> 265 - " nnoremap <C-f> :NERDTreeFind<CR> 293 + "nmap <leader>l :NERDTreeToggle<CR> 294 + nmap <leader>l :NERDTreeFind<CR> 266 295 267 296 " Outline Shortcut 268 297 nmap <leader>o :SymbolsOutline<CR>
+35
zsh/configs.shrc
··· 1 + set -o vi 2 + 3 + #bash completion 4 + [[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh" 5 + 6 + #This will create separate history files in your home directory 7 + MYTTY=`tty` 8 + HISTFILE=$HOME/.bash_history_`basename $MYTTY` 9 + 10 + # #allow e.g. "pip install -e .[full]" to work -> zsh uses square brackets for globbing / pattern matching. 11 + # #alias pip='noglob pip' 12 + 13 + #always move hidden files as well 14 + #shopt -s dotglob 15 + 16 + # bindkey '^r' history-incremental-search-backward 17 + bindkey -M viins 'jk' vi-cmd-mode 18 + bindkey -M viins 'kj' vi-cmd-mode 19 + 20 + # fzf search 21 + [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh 22 + 23 + #on slow internet connection brew update takes ages. Disabling it per default here 24 + export HOMEBREW_NO_AUTO_UPDATE=1 25 + 26 + # Add Visual Studio Code (code) 27 + export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin" 28 + 29 + #adoptopenjdk to change java versions with e.g. "jdk 11" 30 + jdk() { 31 + version=$1 32 + export JAVA_HOME=$(/usr/libexec/java_home -v"$version"); 33 + java -version 34 + } 35 +
+10
zsh/end.shrc
··· 1 + 2 + # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. 3 + [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh 4 + 5 + #autocompletion kubernetes 6 + source <(kubectl completion zsh) 7 + 8 + #needs to be on the end: 9 + source /usr/local/share/zsh-syntax-highlighting-active/zsh-syntax-highlighting.zsh 10 + source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
+37
zsh/paths.shrc
··· 1 + 2 + # my shortcuts 3 + export git=~/Documents/git 4 + export de=$git/de 5 + export general=$git/general 6 + export sspaeticom=$git/sspaeti.com 7 + export venvs=~/.venvs/ 8 + export sync=~/Simon/Sync 9 + export secondbrain=/Users/sspaeti/Simon/Sync/SecondBrain/ 10 + export areas=/Users/sspaeti/Simon/Sync/SecondBrain/⚛️\ Areas 11 + export blog=/Users/sspaeti/Simon/Sync/SecondBrain/⚛️\ Areas/⌨️\ sspaeti-com/🅱️\ Blog 12 + export hugo=/Users/sspaeti/Simon/Sync/SecondBrain/⚛️\ Areas/⌨️\ sspaeti-com/🅱️\ Blog 13 + export docs=~/Documents 14 + export SPARK_HOME=~/Documents/spark/spark-3.0.1-bin-hadoop3.2 15 + export VS_Projects=/Users/sspaeti/Documents/VS_Projects/ 16 + export PYSPARK_PYTHON=python3 17 + #export DATASETS=/Users/sspaeti/Simon/Sync/Business/13_sspaeti/Real-estate/_DATASETS 18 + 19 + export DAGSTER_HOME=~/.dagster 20 + 21 + #vim stuff 22 + export MYVIMRC=~/.config/nvim/init.vim 23 + export VIMRC=$MYVIMRC 24 + export RC=$MYVIMRC 25 + 26 + # PROTOC_HOME=/Users/zekexu/Documents/protoc 27 + # export PATH=$PATH:$PROTOC_HOME/bin 28 + 29 + # HADOOP_HOME=/usr/local/hadoop 30 + # export PATH=$PATH:$HADOOP_HOME/bin 31 + 32 + # #local hadoop 33 + # export HADOOP_OPTS="-Djava.library.path=${HADOOP_HOME}/lib/native" 34 + # export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${HADOOP_HOME}/lib/native 35 + # export JAVA_LIBRARY_PATH=$JAVA_LIBRARY_PATH:${HADOOP_HOME}/lib/native 36 + # alias hstart="/usr/local/Cellar/hadoop/3.2.1/sbin/start-all.sh" 37 + # alias hstop="/usr/local/Cellar/hadoop/3.2.1/sbin/stop-all.sh"
+123
zsh/zshrc
··· 1 + # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. 2 + # Initialization code that may require console input (password prompts, [y/n] 3 + # confirmations, etc.) must go above this block; everything else may go below. 4 + if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then 5 + source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" 6 + fi 7 + 8 + # If you come from bash you might have to change your $PATH. 9 + # export PATH=$HOME/bin:/usr/local/bin:$PATH 10 + 11 + # Path to your oh-my-zsh installation. 12 + export ZSH="/Users/sspaeti/.oh-my-zsh" 13 + 14 + # load a random theme each time oh-my-zsh is loaded, in which case, 15 + # to know which specific one was loaded, run: echo $RANDOM_THEME 16 + # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes 17 + #ZSH_THEME="robbyrussell" #"agnoster" #"pygmalion" #"robbyrussell" 18 + ZSH_THEME="powerlevel10k/powerlevel10k" 19 + #POWERLEVEL9K_MODE="awesome-patched" 20 + #ZSH_THEME="gruvbox" 21 + #SOLARIZED_THEME="dark" 22 + 23 + # Set list of themes to pick from when loading at random 24 + # Setting this variable when ZSH_THEME=random will cause zsh to load 25 + # a theme from this variable instead of looking in $ZSH/themes/ 26 + # If set to an empty array, this variable will have no effect. 27 + # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) 28 + 29 + # Uncomment the following line to use case-sensitive completion. 30 + # CASE_SENSITIVE="true" 31 + 32 + # Uncomment the following line to use hyphen-insensitive completion. 33 + # Case-sensitive completion must be off. _ and - will be interchangeable. 34 + # HYPHEN_INSENSITIVE="true" 35 + 36 + # Uncomment the following line to disable bi-weekly auto-update checks. 37 + # DISABLE_AUTO_UPDATE="true" 38 + 39 + # Uncomment the following line to automatically update without prompting. 40 + # DISABLE_UPDATE_PROMPT="true" 41 + 42 + # Uncomment the following line to change how often to auto-update (in days). 43 + # export UPDATE_ZSH_DAYS=13 44 + 45 + # Uncomment the following line if pasting URLs and other text is messed up. 46 + # DISABLE_MAGIC_FUNCTIONS="true" 47 + 48 + # Uncomment the following line to disable colors in ls. 49 + # DISABLE_LS_COLORS="true" 50 + 51 + # Uncomment the following line to disable auto-setting terminal title. 52 + # DISABLE_AUTO_TITLE="true" 53 + 54 + # Uncomment the following line to enable command auto-correction. 55 + # ENABLE_CORRECTION="true" 56 + 57 + # Uncomment the following line to display red dots whilst waiting for completion. 58 + # COMPLETION_WAITING_DOTS="true" 59 + 60 + # Uncomment the following line if you want to disable marking untracked files 61 + # under VCS as dirty. This makes repository status check for large repositories 62 + # much, much faster. 63 + # DISABLE_UNTRACKED_FILES_DIRTY="true" 64 + 65 + # Uncomment the following line if you want to change the command execution time 66 + # stamp shown in the history command output. 67 + # You can set one of the optional three formats: 68 + # "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" 69 + # or set a custom format using the strftime function format specifications, 70 + # see 'man strftime' for details. 71 + # HIST_STAMPS="mm/dd/yyyy" 72 + 73 + # Would you like to use another custom folder than $ZSH/custom? 74 + # ZSH_CUSTOM=/path/to/new-custom-folder 75 + 76 + export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=/usr/local/share/zsh-syntax-highlighting/highlighters 77 + 78 + # Which plugins would you like to load? 79 + # Standard plugins can be found in $ZSH/plugins/ 80 + # Custom plugins may be added to $ZSH_CUSTOM/plugins/ 81 + # Example format: plugins=(rails git textmate ruby lighthouse) 82 + # Add wisely, as too many plugins slow down shell startup. 83 + # source ~/.oh-my-zsh/plugins/git/git.plugin.zsh 84 + plugins=(git macos docker docker-compose virtualenv vi-mode) 85 + #installed with brew therefor not in above list: zsh-syntax-highlighting zsh-autosuggestions 86 + 87 + source $ZSH/oh-my-zsh.sh 88 + 89 + # User configuration 90 + 91 + # export MANPATH="/usr/local/man:$MANPATH" 92 + 93 + # You may need to manually set your language environment 94 + # export LANG=en_US.UTF-8 95 + 96 + # Preferred editor for local and remote sessions 97 + # if [[ -n $SSH_CONNECTION ]]; then 98 + # export EDITOR='vim' 99 + # else 100 + # export EDITOR='mvim' 101 + # fi 102 + 103 + # Compilation flags 104 + # export ARCHFLAGS="-arch x86_64" 105 + 106 + # Set personal aliases, overriding those provided by oh-my-zsh libs, 107 + # plugins, and themes. Aliases can be placed here, though oh-my-zsh 108 + # users are encouraged to define aliases within the ZSH_CUSTOM folder. 109 + # For a full list of active aliases, run `alias`. 110 + # 111 + # Example aliases 112 + # alias zshconfig="mate ~/.zshrc" 113 + # alias ohmyzsh="mate ~/.oh-my-zsh" 114 + 115 + 116 + # 117 + # sspaeti customized properties 118 + # 119 + source ~/.dotfiles/zsh/aliases.shrc 120 + source ~/.dotfiles/zsh/.secrets 121 + source ~/.dotfiles/zsh/paths.shrc 122 + source ~/.dotfiles/zsh/configs.shrc 123 + source ~/.dotfiles/zsh/end.shrc