"up" now does brew update

- VSCode - shift+esc - to hide side panel
- VSCode- Settings  -cleanup, added better comment settings
This commit is contained in:
Pratik Tripathy
2023-08-02 11:25:46 +05:30
parent 674859b114
commit 075426740e
4 changed files with 63 additions and 17 deletions

View File

@@ -73,7 +73,7 @@ alias speedtest="speedtest-cli --secure" # needs speedtest-cli installed
geoip () { 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)}' 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 # Update & Upgrades

View File

@@ -60,8 +60,7 @@
"when": "terminal.active" "when": "terminal.active"
}, },
{ {
"key": "ctrl+`", "key": "shift+escape",
"command": "-workbench.action.terminal.toggleTerminal", "command": "workbench.action.toggleSidebarVisibility"
"when": "terminal.active"
} }
] ]

View File

@@ -8,6 +8,8 @@
"extensions.ignoreRecommendations": true, "extensions.ignoreRecommendations": true,
// //
// Editor // Editor
"editor.fontSize": 21, // Increase the Editor's font to offset
"window.zoomLevel": -1, // Reduces the Activity Bar size
"editor.cursorWidth": 4, "editor.cursorWidth": 4,
"editor.minimap.enabled": false, "editor.minimap.enabled": false,
"editor.wordWrap": "on", "editor.wordWrap": "on",
@@ -29,16 +31,14 @@
"diffEditor.ignoreTrimWhitespace": false, "diffEditor.ignoreTrimWhitespace": false,
// //
// Editor Font // Editor Font
"editor.fontFamily": "Hasklug Nerd Font", "editor.fontFamily": "FuraCode Nerd Font",
"editor.fontSize": 17,
"editor.fontLigatures": true, "editor.fontLigatures": true,
"terminal.integrated.fontFamily": "FuraCode Nerd Font", "terminal.integrated.fontFamily": "FuraCode Nerd Font",
"terminal.integrated.fontSize": 17, "terminal.integrated.fontSize": 20,
// //
// Workbench - Everything that surrounds the editor // Workbench - Everything that surrounds the editor
"workbench.startupEditor": "newUntitledFile", "workbench.startupEditor": "newUntitledFile",
"workbench.sideBar.location": "left", "workbench.sideBar.location": "left",zoomLevel
// "window.zoomLevel": -1, //Reduces the Activity Bar size
"workbench.colorCustomizations": { "workbench.colorCustomizations": {
"tab.activeBackground": "#07f7af3f", "tab.activeBackground": "#07f7af3f",
"tab.activeBorder": "#ffffff" "tab.activeBorder": "#ffffff"
@@ -119,23 +119,69 @@
// Shell check plugin // Shell check plugin
"shellcheck.run": "onSave", "shellcheck.run": "onSave",
"shellcheck.exclude": ["2181", "2039"], "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 // ES Lint
"eslint.alwaysShowStatus": true, "eslint.alwaysShowStatus": true,
"eslint.packageManager": "yarn",
"eslint.run": "onSave", "eslint.run": "onSave",
// //
// JavaScript // JavaScript
"es6-css-minify.minifyOnSave": "yes",
"es6-css-minify.onSaveDelay": 10,
"typescript.suggest.paths": false, "typescript.suggest.paths": false,
// //
// Git // Git
"git.enableSmartCommit": true, "git.enableSmartCommit": true,
"git.autofetch": true, "git.autofetch": true,
"git.confirmSync": false, "git.confirmSync": false,
"gitlens.hovers.currentLine.over": "line",
// GetLens // GetLens
"gitlens.hovers.currentLine.over": "line",
"gitlens.advanced.telemetry.enabled": false, "gitlens.advanced.telemetry.enabled": false,
"gitlens.statusBar.reduceFlicker": true, "gitlens.statusBar.reduceFlicker": true,
"gitlens.blame.avatars": false, "gitlens.blame.avatars": false,
@@ -150,7 +196,6 @@
// Markdown // Markdown
"markdown.extension.print.imgToBase64": true, "markdown.extension.print.imgToBase64": true,
"markdown.extension.print.theme": "dark", "markdown.extension.print.theme": "dark",
"markdown.extension.toc.githubCompatibility": true,
"markdownlint.run": "onType", "markdownlint.run": "onType",
"markdown.extension.toc.orderedList": true, "markdown.extension.toc.orderedList": true,
"markdown.extension.tableFormatter.normalizeIndentation": true, "markdown.extension.tableFormatter.normalizeIndentation": true,
@@ -176,6 +221,7 @@
// //
// //
// Themes // Themes
"workbench.colorTheme": "GitHub Dark Dimmed",
"workbench.iconTheme": "material-icon-theme", "workbench.iconTheme": "material-icon-theme",
"theme-by-language.themes": { "theme-by-language.themes": {
"*": "GitHub Dark", "*": "GitHub Dark",
@@ -195,7 +241,8 @@
"rust-analyzer.inlayHints.enable": false, "rust-analyzer.inlayHints.enable": false,
"rust-analyzer.inlayHints.typeHints": 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"
// //
} }

View File

@@ -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"