diff --git a/fish/config.fish b/fish/config.fish index 00646df..8f2adff 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -1,7 +1,6 @@ # Disable greeting set fish_greeting -alias fixmouse="killall LogiMgrDaemon" alias icloud="cd ~/Library/Mobile\ Documents/com~apple~CloudDocs" alias pi="ssh pi@pi.misva.me -p 1733" alias gcp="ssh mikkelsvartveit@gcp.misva.me" @@ -11,7 +10,6 @@ alias cloud-sync="rsync -auzP --exclude=.DS_Store '/Volumes/Samsung T7/misvaClou alias zshrc="nvim ~/.zshrc" alias fishconfig="cd ~/.config/fish && nvim config.fish && cd -" alias nvimconfig="cd ~/.config/nvim && nvim && cd -" -alias ai="sgpt -se" abbr x86 "arch -x86_64" abbr v "nvim" @@ -35,7 +33,6 @@ abbr gli "nvim (git rev-parse --show-toplevel)/.git/info/exclude" abbr cloud-push "rsync -auzP --exclude=.DS_Store '/Volumes/Samsung T7/misvaCloud/' ubuntu@cloud.misva.me:~/misvaCloud/" abbr cloud-pull "rsync -auzP --exclude=.DS_Store ubuntu@cloud.misva.me:~/misvaCloud/ '/Volumes/Samsung T7/misvaCloud/'" abbr cloud-purge "rsync -auzP --exclude=.DS_Store '/Volumes/Samsung T7/misvaCloud/' ubuntu@cloud.misva.me:~/misvaCloud/ --delete --dry-run" -abbr 164 "ssh cs164-aiu@eda-3.eecs.berkeley.edu" abbr caf "caffeinate -d" function ghid @@ -60,21 +57,18 @@ end # Start Docker Desktop and wait to ensure the daemon is ready function ds echo "Launching Docker Daemon..." - open -a "Docker" - sleep 15 + open --hide -a "Orbstack" + sleep 5 echo "Docker daemon started." end function dq - osascript -e 'quit app "Docker Desktop"' + osascript -e 'quit app "OrbStack"' end # Enable autojump [ -f /opt/homebrew/share/autojump/autojump.fish ]; and source /opt/homebrew/share/autojump/autojump.fish -# opam (OCaml package manager) configuration -source /Users/mikkelsvartveit/.opam/opam-init/init.fish > /dev/null 2> /dev/null; or true - # Update PATH fish_add_path "$HOME/.local/bin" # Lingua Franca fish_add_path "$HOME/.bun/bin" # Bun @@ -96,3 +90,7 @@ pyenv init - | source # bun set --export BUN_INSTALL "$HOME/.bun" set --export PATH $BUN_INSTALL/bin $PATH + +# Added by OrbStack: command-line tools and integration +# This won't be added again if you remove it. +source ~/.orbstack/shell/init2.fish 2>/dev/null || : diff --git a/vscode-neovim/init.vim b/vscode-neovim/init.vim index dbbb411..448ccdd 100644 --- a/vscode-neovim/init.vim +++ b/vscode-neovim/init.vim @@ -40,14 +40,12 @@ nnoremap : call VSCodeNotify('workbench.action.showCommands') nnoremap c call VSCodeNotify('workbench.action.showCommands') nnoremap d call VSCodeNotify('workbench.view.scm') nnoremap n call VSCodeNotify('workbench.action.toggleSidebarVisibility') - -" Disable arrow keys in normal mode - enforce hjkl instead -nnoremap :echoe "Use h" -nnoremap :echoe "Use l" -nnoremap :echoe "Use k" -nnoremap :echoe "Use j" - - +nnoremap rn call VSCodeNotify('editor.action.rename') +xnoremap gc call VSCodeNotify('editor.action.commentLine') +nnoremap gc call VSCodeNotify('editor.action.commentLine') +nnoremap gcc call VSCodeNotify('editor.action.commentLine') +xnoremap gb call VSCodeNotify('editor.action.blockComment') +nnoremap gb call VSCodeNotify('editor.action.blockComment') " PLUGINS - installation and configuration @@ -66,21 +64,8 @@ autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)')) " Fetch plugins with Plug call plug#begin() -" Add two-character motions with s and S -Plug 'ggandor/leap.nvim' -Plug 'tpope/vim-repeat' - -" Easy commenting/uncommenting -Plug 'numToStr/Comment.nvim' - " Easy handling of surroundings (tags, brackets etc.) Plug 'tpope/vim-surround' " End of plugin fetching call plug#end() - -" Configure leap -lua require('leap').add_default_mappings() - -" Configure Comment.nvim -lua require('Comment').setup()