From 075426740ee8727a3a5ba9e77e604f9f18e8bb4f Mon Sep 17 00:00:00 2001 From: Pratik Tripathy Date: Wed, 2 Aug 2023 11:25:46 +0530 Subject: [PATCH] "up" now does brew update - VSCode - shift+esc - to hide side panel - VSCode- Settings -cleanup, added better comment settings --- .aliases | 2 +- .config/Code/User/keybindings.json | 5 +-- .config/Code/User/settings.json | 71 +++++++++++++++++++++++++----- .neon_alias | 2 +- 4 files changed, 63 insertions(+), 17 deletions(-) diff --git a/.aliases b/.aliases index e07675a..bacc45f 100755 --- a/.aliases +++ b/.aliases @@ -73,7 +73,7 @@ alias speedtest="speedtest-cli --secure" # needs speedtest-cli installed geoip () { curl -s https://ipinfo.io | sed '/readme/d;/loc/d;/postal/d;s/org/ISP/' | tr -d {},\" | awk -F ':' 'NF {printf ("%10s: %.25s \n", $1, $2)}' } -alias listening-apps="sudo netstat -nutlp | grep ':' | awk '{print \$1,\$4,\$NF}' | awk -F: '{print \$1,\$(NF-1),\$NF}' | awk -v OFS=\"\t\" 'BEGIN {printf (\"%s\t%s\t\t%s \n\", \"PROTO\", \"PORT\", \"APPLICATION\")} {print \$1 , \$(NF-1) ,\" \" , \$NF}' | (read -r; printf \"%s\n\" \"\$REPLY\"; sort -k2 -n)" +alias listening_apps="sudo netstat -nutlp | grep ':' | awk '{print \$1,\$4,\$NF}' | awk -F: '{print \$1,\$(NF-1),\$NF}' | awk -v OFS=\"\t\" 'BEGIN {printf (\"%s\t%s\t\t%s \n\", \"PROTO\", \"PORT\", \"APPLICATION\")} {print \$1 , \$(NF-1) ,\" \" , \$NF}' | (read -r; printf \"%s\n\" \"\$REPLY\"; sort -k2 -n)" # Update & Upgrades diff --git a/.config/Code/User/keybindings.json b/.config/Code/User/keybindings.json index 8c74d0e..7002743 100755 --- a/.config/Code/User/keybindings.json +++ b/.config/Code/User/keybindings.json @@ -60,8 +60,7 @@ "when": "terminal.active" }, { - "key": "ctrl+`", - "command": "-workbench.action.terminal.toggleTerminal", - "when": "terminal.active" + "key": "shift+escape", + "command": "workbench.action.toggleSidebarVisibility" } ] diff --git a/.config/Code/User/settings.json b/.config/Code/User/settings.json index e8b6c3d..3a904ff 100755 --- a/.config/Code/User/settings.json +++ b/.config/Code/User/settings.json @@ -8,6 +8,8 @@ "extensions.ignoreRecommendations": true, // // Editor + "editor.fontSize": 21, // Increase the Editor's font to offset + "window.zoomLevel": -1, // Reduces the Activity Bar size "editor.cursorWidth": 4, "editor.minimap.enabled": false, "editor.wordWrap": "on", @@ -29,16 +31,14 @@ "diffEditor.ignoreTrimWhitespace": false, // // Editor Font - "editor.fontFamily": "Hasklug Nerd Font", - "editor.fontSize": 17, + "editor.fontFamily": "FuraCode Nerd Font", "editor.fontLigatures": true, "terminal.integrated.fontFamily": "FuraCode Nerd Font", - "terminal.integrated.fontSize": 17, + "terminal.integrated.fontSize": 20, // // Workbench - Everything that surrounds the editor "workbench.startupEditor": "newUntitledFile", - "workbench.sideBar.location": "left", - // "window.zoomLevel": -1, //Reduces the Activity Bar size + "workbench.sideBar.location": "left",zoomLevel "workbench.colorCustomizations": { "tab.activeBackground": "#07f7af3f", "tab.activeBorder": "#ffffff" @@ -119,23 +119,69 @@ // Shell check plugin "shellcheck.run": "onSave", "shellcheck.exclude": ["2181", "2039"], + "security.workspace.trust.untrustedFiles": "open", // + // Better Comments + "better-comments.tags": [ + { + "tag": "!", + "color": "#FF2D00", + "strikethrough": false, + "underline": false, + "backgroundColor": "transparent", + "bold": false, + "italic": false + }, + { + "tag": "?", + "color": "#3498DB", + "strikethrough": false, + "underline": false, + "backgroundColor": "transparent", + "bold": false, + "italic": false + }, + { + "tag": "//", + "color": "#474747", + "strikethrough": true, + "underline": false, + "backgroundColor": "transparent", + "bold": false, + "italic": false + }, + { + "tag": "todo", + "color": "#FF8C00", + "strikethrough": false, + "underline": false, + "backgroundColor": "transparent", + "bold": false, + "italic": false + }, + { + "tag": "*", + "color": "#98C379", + "strikethrough": false, + "underline": false, + "backgroundColor": "transparent", + "bold": false, + "italic": false + } + ], // ES Lint "eslint.alwaysShowStatus": true, - "eslint.packageManager": "yarn", "eslint.run": "onSave", // // JavaScript - "es6-css-minify.minifyOnSave": "yes", - "es6-css-minify.onSaveDelay": 10, "typescript.suggest.paths": false, // // Git "git.enableSmartCommit": true, "git.autofetch": true, "git.confirmSync": false, - "gitlens.hovers.currentLine.over": "line", // GetLens + "gitlens.hovers.currentLine.over": "line", "gitlens.advanced.telemetry.enabled": false, "gitlens.statusBar.reduceFlicker": true, "gitlens.blame.avatars": false, @@ -150,7 +196,6 @@ // Markdown "markdown.extension.print.imgToBase64": true, "markdown.extension.print.theme": "dark", - "markdown.extension.toc.githubCompatibility": true, "markdownlint.run": "onType", "markdown.extension.toc.orderedList": true, "markdown.extension.tableFormatter.normalizeIndentation": true, @@ -176,6 +221,7 @@ // // // Themes + "workbench.colorTheme": "GitHub Dark Dimmed", "workbench.iconTheme": "material-icon-theme", "theme-by-language.themes": { "*": "GitHub Dark", @@ -195,7 +241,8 @@ "rust-analyzer.inlayHints.enable": false, "rust-analyzer.inlayHints.typeHints": false, // - "workbench.colorTheme": "GitHub Dark Dimmed", - "terminal.integrated.shell.linux": "/bin/zsh" + "terminal.integrated.shell.linux": "/bin/zsh", + "debug.javascript.autoAttachFilter": "disabled", + "debug.onTaskErrors": "debugAnyway" // } diff --git a/.neon_alias b/.neon_alias index 3c3c451..751cc96 100755 --- a/.neon_alias +++ b/.neon_alias @@ -1 +1 @@ -alias up="sudo pkcon refresh && sudo pkcon update && distup && autorem && rustup update" +alias up="sudo pkcon refresh && sudo pkcon update && sudo apt dist-upgrade && sudo apt autoremove && rustup update && brew update"