From c43836e6e3c36e15dbd6bb0cf2096b5e4590ca33 Mon Sep 17 00:00:00 2001 From: Amar Saljic Date: Fri, 4 Jul 2025 23:27:36 +0200 Subject: [PATCH] added iterm2 profile + vim incl. instructions how to create symlink --- .gitignore | 1 + generic_working_machine/README.md | 6 + generic_working_machine/vimrc | 56 +++ macos/iterm2/iterm_default_profile.json | 627 ++++++++++++++++++++++++ 4 files changed, 690 insertions(+) create mode 100644 .gitignore create mode 100644 generic_working_machine/README.md create mode 100644 generic_working_machine/vimrc create mode 100644 macos/iterm2/iterm_default_profile.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/generic_working_machine/README.md b/generic_working_machine/README.md new file mode 100644 index 0000000..a10e3f8 --- /dev/null +++ b/generic_working_machine/README.md @@ -0,0 +1,6 @@ +# Installing useful tools +## Vim +Create symlink +```bash +ln -s path/to/repository ~/.vim/vimrc +``` diff --git a/generic_working_machine/vimrc b/generic_working_machine/vimrc new file mode 100644 index 0000000..21bb7c7 --- /dev/null +++ b/generic_working_machine/vimrc @@ -0,0 +1,56 @@ +" install vim-plug +let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim' +if empty(glob(data_dir . '/autoload/plug.vim')) + silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' + autocmd VimEnter * PlugInstall --sync | source $MYVIMRC +endif + +" setup plugins +call plug#begin() + Plug 'preservim/nerdtree' + Plug 'ryanoasis/vim-devicons' + Plug 'vim-airline/vim-airline' + Plug 'vim-airline/vim-airline-themes' + Plug 'prabirshrestha/vim-lsp' + Plug 'mattn/vim-lsp-settings' + Plug 'prabirshrestha/asyncomplete.vim' + Plug 'prabirshrestha/asyncomplete-lsp.vim' +call plug#end() + +" general settings +syntax on +set tabstop=4 +set shiftwidth=4 +set expandtab +set number relativenumber + +" required for vim-devicons to work properly +set encoding=UTF-8 + +" vim-airline settings +let g:airline_theme='papercolor' + +" NERDTree settings +let g:NERDTreeShowHidden=1 +nnoremap :NERDTreeToggle + +" set up vim-lsp +let g:lsp_diagnostics_echo_cursor = 1 + +" set up vim-lsp-settings +let g:lsp_settings= { +\ 'clangd': { +\ 'cmd': ['/opt/homebrew/Cellar/llvm/19.1.6/bin/clangd'], +\ } +\} + +" set up autocomplete tabing +inoremap pumvisible() ? "\" : "\" +inoremap pumvisible() ? "\" : "\" +inoremap pumvisible() ? asyncomplete#close_popup() : "\" + +" set up automatic braces +inoremap { {}ko +inoremap ( ()i +inoremap [ []i +inoremap " ""i diff --git a/macos/iterm2/iterm_default_profile.json b/macos/iterm2/iterm_default_profile.json new file mode 100644 index 0000000..05d546e --- /dev/null +++ b/macos/iterm2/iterm_default_profile.json @@ -0,0 +1,627 @@ +{ + "Ansi 7 Color (Light)" : { + "Red Component" : 0.84705883264541626, + "Color Space" : "sRGB", + "Blue Component" : 0.91372549533843994, + "Alpha Component" : 1, + "Green Component" : 0.87058824300765991 + }, + "Ansi 15 Color (Light)" : { + "Red Component" : 0.92549020051956177, + "Color Space" : "sRGB", + "Blue Component" : 0.95686274766921997, + "Alpha Component" : 1, + "Green Component" : 0.93725490570068359 + }, + "Ansi 2 Color (Light)" : { + "Red Component" : 0.63921576738357544, + "Color Space" : "sRGB", + "Blue Component" : 0.54901951551437378, + "Alpha Component" : 1, + "Green Component" : 0.74509817361831665 + }, + "Bold Color" : { + "Red Component" : 0.062745101749897003, + "Color Space" : "sRGB", + "Blue Component" : 0.062745101749897003, + "Alpha Component" : 1, + "Green Component" : 0.062745101749897003 + }, + "Ansi 1 Color (Dark)" : { + "Red Component" : 0.74901962280273438, + "Color Space" : "sRGB", + "Blue Component" : 0.41568627953529358, + "Alpha Component" : 1, + "Green Component" : 0.3803921639919281 + }, + "Use Bright Bold" : true, + "Ansi 9 Color (Light)" : { + "Red Component" : 0.74901968240737915, + "Color Space" : "sRGB", + "Blue Component" : 0.4156862199306488, + "Alpha Component" : 1, + "Green Component" : 0.38039213418960571 + }, + "Ansi 8 Color (Dark)" : { + "Red Component" : 0.29803922772407532, + "Color Space" : "sRGB", + "Blue Component" : 0.41568627953529358, + "Alpha Component" : 1, + "Green Component" : 0.33725491166114807 + }, + "Background Color" : { + "Red Component" : 0.97999999999999998, + "Color Space" : "sRGB", + "Blue Component" : 0.97999999999999998, + "Alpha Component" : 1, + "Green Component" : 0.97999999999999998 + }, + "Columns" : 80, + "Ansi 8 Color" : { + "Red Component" : 0.40781760215759277, + "Color Space" : "sRGB", + "Blue Component" : 0.4078223705291748, + "Alpha Component" : 1, + "Green Component" : 0.40782788395881653 + }, + "Right Option Key Sends" : 0, + "Ansi 4 Color (Light)" : { + "Red Component" : 0.50588244199752808, + "Color Space" : "sRGB", + "Blue Component" : 0.75686275959014893, + "Alpha Component" : 1, + "Green Component" : 0.63137257099151611 + }, + "Blinking Cursor" : false, + "Selected Text Color (Light)" : { + "Red Component" : 0.29803922772407532, + "Color Space" : "sRGB", + "Blue Component" : 0.41568627953529358, + "Alpha Component" : 1, + "Green Component" : 0.3333333432674408 + }, + "Selected Text Color (Dark)" : { + "Red Component" : 0.29803922772407532, + "Color Space" : "sRGB", + "Blue Component" : 0.41568627953529358, + "Alpha Component" : 1, + "Green Component" : 0.33725491166114807 + }, + "Ansi 3 Color (Dark)" : { + "Red Component" : 0.92156863212585449, + "Color Space" : "sRGB", + "Blue Component" : 0.54509806632995605, + "Alpha Component" : 1, + "Green Component" : 0.79607844352722168 + }, + "Keyboard Map" : { + + }, + "Visual Bell" : true, + "Cursor Text Color" : { + "Red Component" : 1, + "Color Space" : "sRGB", + "Blue Component" : 1, + "Alpha Component" : 1, + "Green Component" : 1 + }, + "Scrollback Lines" : 1000, + "Selection Color (Light)" : { + "Red Component" : 0.84705883264541626, + "Color Space" : "sRGB", + "Blue Component" : 0.91372549533843994, + "Alpha Component" : 1, + "Green Component" : 0.87058824300765991 + }, + "Ansi 0 Color" : { + "Red Component" : 0.078431375324726105, + "Color Space" : "sRGB", + "Blue Component" : 0.11764705926179886, + "Alpha Component" : 1, + "Green Component" : 0.098039217293262482 + }, + "Match Background Color (Dark)" : { + "Red Component" : 1, + "Color Space" : "P3", + "Blue Component" : 0, + "Alpha Component" : 1, + "Green Component" : 1 + }, + "Ansi 11 Color (Light)" : { + "Red Component" : 0.92156857252120972, + "Color Space" : "sRGB", + "Blue Component" : 0.54509800672531128, + "Alpha Component" : 1, + "Green Component" : 0.79607844352722168 + }, + "Ansi 5 Color (Dark)" : { + "Red Component" : 0.70588237047195435, + "Color Space" : "sRGB", + "Blue Component" : 0.67843139171600342, + "Alpha Component" : 1, + "Green Component" : 0.55686277151107788 + }, + "Cursor Text Color (Light)" : { + "Red Component" : 0.23137256503105164, + "Color Space" : "sRGB", + "Blue Component" : 0.32156860828399658, + "Alpha Component" : 1, + "Green Component" : 0.25882357358932495 + }, + "Silence Bell" : false, + "Rows" : 25, + "Guid" : "23582F69-3D46-4EC1-9030-F398B45D8630", + "Ansi 14 Color (Dark)" : { + "Red Component" : 0.56078433990478516, + "Color Space" : "sRGB", + "Blue Component" : 0.73333334922790527, + "Alpha Component" : 1, + "Green Component" : 0.73725491762161255 + }, + "Ansi 15 Color (Dark)" : { + "Red Component" : 0.92549020051956177, + "Color Space" : "sRGB", + "Blue Component" : 0.95686274766921997, + "Alpha Component" : 1, + "Green Component" : 0.93725490570068359 + }, + "Ansi 0 Color (Dark)" : { + "Red Component" : 0.23137255012989044, + "Color Space" : "sRGB", + "Blue Component" : 0.32156863808631897, + "Alpha Component" : 1, + "Green Component" : 0.25882354378700256 + }, + "Ambiguous Double Width" : false, + "Option Key Sends" : 0, + "Ansi 3 Color" : { + "Red Component" : 0.78058648109436035, + "Color Space" : "sRGB", + "Blue Component" : 0, + "Alpha Component" : 1, + "Green Component" : 0.76959484815597534 + }, + "Window Type" : 0, + "BM Growl" : true, + "Prompt Before Closing 2" : false, + "Command" : "", + "Selected Text Color" : { + "Red Component" : 0, + "Color Space" : "sRGB", + "Blue Component" : 0, + "Alpha Component" : 1, + "Green Component" : 0 + }, + "Ansi 14 Color (Light)" : { + "Red Component" : 0.56078433990478516, + "Color Space" : "sRGB", + "Blue Component" : 0.73333334922790527, + "Alpha Component" : 1, + "Green Component" : 0.73725491762161255 + }, + "Cursor Guide Color (Dark)" : { + "Red Component" : 0.23529419302940369, + "Color Space" : "sRGB", + "Blue Component" : 0.21176469326019287, + "Alpha Component" : 1, + "Green Component" : 0.21960783004760742 + }, + "Send Code When Idle" : false, + "Ansi 6 Color" : { + "Red Component" : 0, + "Color Space" : "sRGB", + "Blue Component" : 0.78166204690933228, + "Alpha Component" : 1, + "Green Component" : 0.77425903081893921 + }, + "Jobs to Ignore" : [ + "rlogin", + "ssh", + "slogin", + "telnet" + ], + "Badge Color (Dark)" : { + "Red Component" : 0.23137255012989044, + "Color Space" : "sRGB", + "Blue Component" : 0.32156863808631897, + "Alpha Component" : 0.5, + "Green Component" : 0.25882354378700256 + }, + "Cursor Color" : { + "Red Component" : 0, + "Color Space" : "sRGB", + "Blue Component" : 0, + "Alpha Component" : 1, + "Green Component" : 0 + }, + "Vertical Spacing" : 1, + "Disable Window Resizing" : true, + "Close Sessions On End" : true, + "Selection Color (Dark)" : { + "Red Component" : 0.92549020051956177, + "Color Space" : "sRGB", + "Blue Component" : 0.95686274766921997, + "Alpha Component" : 1, + "Green Component" : 0.93725490570068359 + }, + "Default Bookmark" : "No", + "Foreground Color (Light)" : { + "Red Component" : 0.25490197539329529, + "Color Space" : "sRGB", + "Blue Component" : 0.34509804844856262, + "Alpha Component" : 1, + "Green Component" : 0.28235295414924622 + }, + "Custom Command" : "No", + "Background Color (Dark)" : { + "Red Component" : 0.18039216101169586, + "Color Space" : "sRGB", + "Blue Component" : 0.25098040699958801, + "Alpha Component" : 1, + "Green Component" : 0.20392157137393951 + }, + "Ansi 9 Color" : { + "Red Component" : 0.8659515380859375, + "Color Space" : "sRGB", + "Blue Component" : 0.45833224058151245, + "Alpha Component" : 1, + "Green Component" : 0.47524076700210571 + }, + "Ansi 14 Color" : { + "Red Component" : 0.37597531080245972, + "Color Space" : "sRGB", + "Blue Component" : 1, + "Alpha Component" : 1, + "Green Component" : 0.99263292551040649 + }, + "Flashing Bell" : false, + "Use Italic Font" : true, + "Tab Color (Light)" : { + "Red Component" : 0.23137256503105164, + "Color Space" : "sRGB", + "Blue Component" : 0.32156860828399658, + "Alpha Component" : 1, + "Green Component" : 0.25882357358932495 + }, + "Ansi 13 Color (Dark)" : { + "Red Component" : 0.70588237047195435, + "Color Space" : "sRGB", + "Blue Component" : 0.67843139171600342, + "Alpha Component" : 1, + "Green Component" : 0.55686277151107788 + }, + "Cursor Guide Color (Light)" : { + "Red Component" : 0.23137256503105164, + "Color Space" : "sRGB", + "Blue Component" : 0.32156860828399658, + "Alpha Component" : 1, + "Green Component" : 0.25882357358932495 + }, + "Ansi 12 Color" : { + "Red Component" : 0.65349078178405762, + "Color Space" : "sRGB", + "Blue Component" : 0.9485321044921875, + "Alpha Component" : 1, + "Green Component" : 0.67044717073440552 + }, + "Ansi 10 Color (Light)" : { + "Red Component" : 0.63921576738357544, + "Color Space" : "sRGB", + "Blue Component" : 0.54901951551437378, + "Alpha Component" : 1, + "Green Component" : 0.74509817361831665 + }, + "Non-ASCII Anti Aliased" : true, + "Ansi 10 Color" : { + "Red Component" : 0.3450070321559906, + "Color Space" : "sRGB", + "Blue Component" : 0.56541937589645386, + "Alpha Component" : 1, + "Green Component" : 0.9042816162109375 + }, + "Foreground Color" : { + "Red Component" : 0.062745101749897003, + "Color Space" : "sRGB", + "Blue Component" : 0.062745101749897003, + "Alpha Component" : 1, + "Green Component" : 0.062745101749897003 + }, + "Link Color (Light)" : { + "Red Component" : 0.5058823823928833, + "Color Space" : "sRGB", + "Blue Component" : 0.75686275959014893, + "Alpha Component" : 1, + "Green Component" : 0.63137257099151611 + }, + "Description" : "Default", + "Ansi 7 Color (Dark)" : { + "Red Component" : 0.89803922176361084, + "Color Space" : "sRGB", + "Blue Component" : 0.94117647409439087, + "Alpha Component" : 1, + "Green Component" : 0.91372549533843994 + }, + "Sync Title" : false, + "Ansi 1 Color" : { + "Red Component" : 0.7074432373046875, + "Color Space" : "sRGB", + "Blue Component" : 0.16300037503242493, + "Alpha Component" : 1, + "Green Component" : 0.23660069704055786 + }, + "Name" : "Default", + "Transparency" : 0, + "Horizontal Spacing" : 1, + "Cursor Color (Dark)" : { + "Red Component" : 0.92549020051956177, + "Color Space" : "sRGB", + "Blue Component" : 0.95686274766921997, + "Alpha Component" : 1, + "Green Component" : 0.93725490570068359 + }, + "Ansi 2 Color (Dark)" : { + "Red Component" : 0.63921570777893066, + "Color Space" : "sRGB", + "Blue Component" : 0.54901963472366333, + "Alpha Component" : 1, + "Green Component" : 0.7450980544090271 + }, + "Ansi 9 Color (Dark)" : { + "Red Component" : 0.74901962280273438, + "Color Space" : "sRGB", + "Blue Component" : 0.41568627953529358, + "Alpha Component" : 1, + "Green Component" : 0.3803921639919281 + }, + "Badge Color" : { + "Red Component" : 0.74613857269287109, + "Color Space" : "sRGB", + "Blue Component" : 0.11610633134841919, + "Alpha Component" : 0.5, + "Green Component" : 0.11610633134841919 + }, + "Ansi 13 Color (Light)" : { + "Red Component" : 0.7058824896812439, + "Color Space" : "sRGB", + "Blue Component" : 0.67843133211135864, + "Alpha Component" : 1, + "Green Component" : 0.55686271190643311 + }, + "Idle Code" : 0, + "Ansi 4 Color" : { + "Red Component" : 0.15404300391674042, + "Color Space" : "sRGB", + "Blue Component" : 0.78216177225112915, + "Alpha Component" : 1, + "Green Component" : 0.26474356651306152 + }, + "Bold Color (Dark)" : { + "Red Component" : 0.99999600648880005, + "Color Space" : "sRGB", + "Blue Component" : 1, + "Alpha Component" : 1, + "Green Component" : 1 + }, + "Screen" : -1, + "Ansi 4 Color (Dark)" : { + "Red Component" : 0.5058823823928833, + "Color Space" : "sRGB", + "Blue Component" : 0.75686275959014893, + "Alpha Component" : 1, + "Green Component" : 0.63137257099151611 + }, + "Cursor Text Color (Dark)" : { + "Red Component" : 0.15686273574829102, + "Color Space" : "sRGB", + "Blue Component" : 0.15686270594596863, + "Alpha Component" : 1, + "Green Component" : 0.15686270594596863 + }, + "Selection Color" : { + "Red Component" : 0.70196080207824707, + "Color Space" : "sRGB", + "Blue Component" : 1, + "Alpha Component" : 1, + "Green Component" : 0.84313726425170898 + }, + "Use Non-ASCII Font" : false, + "Badge Color (Light)" : { + "Red Component" : 0.26274508237838745, + "Color Space" : "sRGB", + "Blue Component" : 0.36862742900848389, + "Alpha Component" : 0.7057952880859375, + "Green Component" : 0.29803919792175293 + }, + "Character Encoding" : 4, + "Ansi 11 Color (Dark)" : { + "Red Component" : 0.92156863212585449, + "Color Space" : "sRGB", + "Blue Component" : 0.54509806632995605, + "Alpha Component" : 1, + "Green Component" : 0.79607844352722168 + }, + "Bold Color (Light)" : { + "Red Component" : 0.25490197539329529, + "Color Space" : "sRGB", + "Blue Component" : 0.34509804844856262, + "Alpha Component" : 1, + "Green Component" : 0.28235295414924622 + }, + "Ansi 12 Color (Dark)" : { + "Red Component" : 0.5058823823928833, + "Color Space" : "sRGB", + "Blue Component" : 0.75686275959014893, + "Alpha Component" : 1, + "Green Component" : 0.63137257099151611 + }, + "Ansi 7 Color" : { + "Red Component" : 0.7810397744178772, + "Color Space" : "sRGB", + "Blue Component" : 0.78104829788208008, + "Alpha Component" : 1, + "Green Component" : 0.78105825185775757 + }, + "Non Ascii Font" : "Monaco 12", + "Ansi 6 Color (Dark)" : { + "Red Component" : 0.53333336114883423, + "Color Space" : "sRGB", + "Blue Component" : 0.81568628549575806, + "Alpha Component" : 1, + "Green Component" : 0.75294119119644165 + }, + "Cursor Guide Color" : { + "Red Component" : 0.52338260412216187, + "Color Space" : "sRGB", + "Blue Component" : 0.85319280624389648, + "Alpha Component" : 0.25, + "Green Component" : 0.77217715978622437 + }, + "Custom Directory" : "No", + "Working Directory" : "\/Users\/mucas", + "ASCII Anti Aliased" : true, + "Shortcut" : "", + "Mouse Reporting" : true, + "Tags" : [ + + ], + "Ansi 6 Color (Light)" : { + "Red Component" : 0.53333336114883423, + "Color Space" : "sRGB", + "Blue Component" : 0.81568628549575806, + "Alpha Component" : 1, + "Green Component" : 0.75294119119644165 + }, + "Match Background Color (Light)" : { + "Red Component" : 1, + "Color Space" : "P3", + "Blue Component" : 0, + "Alpha Component" : 1, + "Green Component" : 1 + }, + "Background Image Location" : "", + "Ansi 1 Color (Light)" : { + "Red Component" : 0.74901968240737915, + "Color Space" : "sRGB", + "Blue Component" : 0.4156862199306488, + "Alpha Component" : 1, + "Green Component" : 0.38039213418960571 + }, + "Use Bold Font" : true, + "Ansi 8 Color (Light)" : { + "Red Component" : 0.29803922772407532, + "Color Space" : "sRGB", + "Blue Component" : 0.41568627953529358, + "Alpha Component" : 1, + "Green Component" : 0.33725488185882568 + }, + "Ansi 2 Color" : { + "Red Component" : 0, + "Color Space" : "sRGB", + "Blue Component" : 0, + "Alpha Component" : 1, + "Green Component" : 0.7607843279838562 + }, + "Normal Font" : "JetBrainsMonoNF-Medium 14", + "Unlimited Scrollback" : false, + "Ansi 12 Color (Light)" : { + "Red Component" : 0.50588244199752808, + "Color Space" : "sRGB", + "Blue Component" : 0.75686275959014893, + "Alpha Component" : 1, + "Green Component" : 0.63137257099151611 + }, + "Ansi 10 Color (Dark)" : { + "Red Component" : 0.63921570777893066, + "Color Space" : "sRGB", + "Blue Component" : 0.54901963472366333, + "Alpha Component" : 1, + "Green Component" : 0.7450980544090271 + }, + "Ansi 3 Color (Light)" : { + "Red Component" : 0.92156857252120972, + "Color Space" : "sRGB", + "Blue Component" : 0.54509800672531128, + "Alpha Component" : 1, + "Green Component" : 0.79607844352722168 + }, + "Cursor Color (Light)" : { + "Red Component" : 0.53333336114883423, + "Color Space" : "sRGB", + "Blue Component" : 0.81568628549575806, + "Alpha Component" : 1, + "Green Component" : 0.75294119119644165 + }, + "Ansi 15 Color" : { + "Red Component" : 0.99999600648880005, + "Color Space" : "sRGB", + "Blue Component" : 1, + "Alpha Component" : 1, + "Green Component" : 1 + }, + "Blur" : false, + "Use Separate Colors for Light and Dark Mode" : true, + "Background Color (Light)" : { + "Red Component" : 0.89803922176361084, + "Color Space" : "sRGB", + "Blue Component" : 0.94117647409439087, + "Alpha Component" : 1, + "Green Component" : 0.91372549533843994 + }, + "Terminal Type" : "xterm-256color", + "Ansi 13 Color" : { + "Red Component" : 0.8821563720703125, + "Color Space" : "sRGB", + "Blue Component" : 0.8821563720703125, + "Alpha Component" : 1, + "Green Component" : 0.4927266538143158 + }, + "Ansi 5 Color (Light)" : { + "Red Component" : 0.7058824896812439, + "Color Space" : "sRGB", + "Blue Component" : 0.67843133211135864, + "Alpha Component" : 1, + "Green Component" : 0.55686271190643311 + }, + "Foreground Color (Dark)" : { + "Red Component" : 0.84705883264541626, + "Color Space" : "sRGB", + "Blue Component" : 0.91372549533843994, + "Alpha Component" : 1, + "Green Component" : 0.87058824300765991 + }, + "Link Color" : { + "Red Component" : 0.19802422821521759, + "Color Space" : "sRGB", + "Blue Component" : 0.9337158203125, + "Alpha Component" : 1, + "Green Component" : 0.55789834260940552 + }, + "Link Color (Dark)" : { + "Red Component" : 0.99607843160629272, + "Color Space" : "sRGB", + "Blue Component" : 1, + "Alpha Component" : 1, + "Green Component" : 1 + }, + "Ansi 11 Color" : { + "Red Component" : 0.9259033203125, + "Color Space" : "sRGB", + "Blue Component" : 0, + "Alpha Component" : 1, + "Green Component" : 0.8833775520324707 + }, + "Ansi 5 Color" : { + "Red Component" : 0.752197265625, + "Color Space" : "sRGB", + "Blue Component" : 0.74494361877441406, + "Alpha Component" : 1, + "Green Component" : 0.24931684136390686 + }, + "Ansi 0 Color (Light)" : { + "Red Component" : 0.23137256503105164, + "Color Space" : "sRGB", + "Blue Component" : 0.32156860828399658, + "Alpha Component" : 1, + "Green Component" : 0.25882357358932495 + } +} \ No newline at end of file