Skip to content

Instantly share code, notes, and snippets.

@ayoubzulfiqar
Last active February 19, 2026 03:46
Show Gist options
  • Select an option

  • Save ayoubzulfiqar/30bb1fe127ae6619c790436e5a143801 to your computer and use it in GitHub Desktop.

Select an option

Save ayoubzulfiqar/30bb1fe127ae6619c790436e5a143801 to your computer and use it in GitHub Desktop.
ZED && VSCode && Oh-My-Posh && PowerShell Terminal Settings

Custom Profile

Default

{
  "workbench.colorTheme": "Tokyo Night",
  "workbench.colorCustomizations": {
    "editor.background": "#000000",
    "sideBar.background": "#000000",
    "terminal.background": "#000000",
    "activityBar.background": "#000000",
    "activityBar.border": "#000000",
    "activityBar.activeBorder": "#000000",
    "dropdown.background": "#000000",
    "dropdown.listBackground": "#000000",
    "dropdown.border": "#000000",
    "editorPane.background": "#000000",
    "editor.compositionBorder": "#000000",
    "editor.findMatchBackground": "#000000",
    "editor.foldBackground": "#000000",
    "editorActionList.background": "#000000",
    "panel.background": "#000000",
    "statusBar.background": "#000000",
    "titleBar.activeBackground": "#000000",
    "titleBar.inactiveBackground": "#000000",
    "panelTitle.activeBorder": "#ff0000",
    "editorWidget.background": "#000000",
    "debugToolBar.background": "#000000",
    "menu.background": "#000000",
    "editorGroupHeader.tabsBackground": "#000000",
    "breadcrumb.background": "#000000",
    "editorGutter.background": "#000000",
    "statusBar.background": "#000000",
    "statusBar.noFolderBackground": "#000000",
    "statusBar.debuggingBackground": "#000000"
  },
  "[svelte]": {
    "editor.defaultFormatter": "svelte.svelte-vscode"
  },
  "json.validate.enable": false,
  "pylint.args": ["--disable=C0116", "--disable=C0111", "--disable=C0114"],
  "pylint.args": [
    "disable=missing-module-docstring",
    "disable=missing-class-docstring",
    "disable=missing-function-docstring"
  ],
  {
    "python.terminal.activateEnvironment": true,
    "python.defaultInterpreterPath": "${workspaceFolder}/.venv/Scripts/python.exe"
},
  "json.schemaDownload.enable": true,
  "editor.fontFamily": "FiraCode Nerd Font",
  "editor.inlayHints.fontFamily": "FiraCode Nerd Font",
  "editor.minimap.enabled": false,
  "git.autofetch": true,
  "files.autoSave": "afterDelay",
  "yaml.customTags": [
    "!And",
    "!And sequence",
    "!If",
    "!If sequence",
    "!Not",
    "!Not sequence",
    "!Equals",
    "!Equals sequence",
    "!Or",
    "!Or sequence",
    "!FindInMap",
    "!FindInMap sequence",
    "!Base64",
    "!Join",
    "!Join sequence",
    "!Cidr",
    "!Ref",
    "!Sub",
    "!Sub sequence",
    "!GetAtt",
    "!GetAZs",
    "!ImportValue",
    "!ImportValue sequence",
    "!Select",
    "!Select sequence",
    "!Split",
    "!Split sequence"
  ],
  "[python]": {
    "editor.formatOnSave": true,
    "editor.defaultFormatter": "charliermarsh.ruff",
    "editor.codeActionsOnSave": {
      "source.organizeImports.ruff": "explicit"
    }
  },
  "[dart]": {
    "editor.formatOnSave": true,
    "editor.formatOnType": true,
    "editor.bracketPairColorization.enabled": true,
    "editor.codeActionsOnSave": {
      "dart.previewFlutterUiGuides": "explicit",
      "source.fixAll": "explicit"
    },

    "editor.stickyScroll.enabled": true,
    "editor.selectionHighlight": false,
    "editor.suggest.snippetsPreventQuickSuggestions": false,
    "editor.suggestSelection": "first",
    "editor.tabCompletion": "onlySnippets",
    "editor.wordBasedSuggestions": "off"
  },
  "explorer.copyRelativePathSeparator": "/",
  "go.useLanguageServer": true,
  "go.formatTool": "gofmt",
  "go.lintTool": "golangci-lint",
  "go.inferGopath": true,
  "go.buildOnSave": "workspace",
  "go.lintOnSave": "package",
  "go.vetOnSave": "package",
  "go.buildTags": "",
  "go.buildFlags": [],
  "go.lintFlags": [],
  "go.vetFlags": [],
  "go.coverOnSave": false,
  "go.useLanguageServer": true,
  "go.alternateTools": {
    "go-langserver": "gopls"
  },
  "[go]": {
    "editor.formatOnSave": true,
    "editor.codeActionsOnSave": {
      "source.organizeImports": "explicit",
      "go.languageServerExperimentalFeatures": {
        "format": true,
        "autoComplete": true
      }
    }
  },
  "go.toolsManagement.autoUpdate": true,
  "gopls": {
    "ui.semanticTokens": true,
    "ui.completion.usePlaceholders": true
  },
  "dart.previewFlutterUiGuidesCustomTracking": true,
  "terminal.integrated.fontFamily": "CaskaydiaCove Nerd Font Mono",
  "editor.renderLineHighlight": "none",
  "editor.formatOnSave": true,
  "editor.cursorStyle": "underline",
  "editor.cursorBlinking": "phase",
  "editor.bracketPairColorization.enabled": true,
  "editor.formatOnType": true,
  "terminal.integrated.cursorStyle": "underline",
  "terminal.integrated.cursorWidth": 3,
  "terminal.integrated.cursorBlinking": true,
  "editor.cursorSmoothCaretAnimation": "on",
  "security.workspace.trust.untrustedFiles": "open",
  "editor.unicodeHighlight.nonBasicASCII": false,
  "editor.wordWrap": "on",
  "markdownlint.ignore": ["MD010"],
  "markdownlint.config": {
    "no-hard-tabs": false,
    "no-duplicate-heading": false,
    "no-duplicate-header": false,
    "ol-prefix": false
  },
  "workbench.iconTheme": "material-icon-theme",
  "glassit.alpha": 255,
  "[jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[json]": {
    "editor.defaultFormatter": "vscode.json-language-features"
  },
  "vscode-edge-devtools.webhintInstallNotification": true,
  "editor.codeLensFontFamily": "FiraCode Nerd Font",
  "terminal.integrated.fontSize": 15,
  "notebook.output.fontFamily": "FiraCode Nerd Font",
  "errorLens.fontFamily": "CaskaydiaCove Nerd Font Mono",
  "window.customTitleBarVisibility": "windowed",
  "workbench.settings.applyToAllProfiles": [],
  "[markdown]": {
    "editor.defaultFormatter": "DavidAnson.vscode-markdownlint"
  },
  "[typescriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "python.analysis.typeCheckingMode": "standard",
  "editor.largeFileOptimizations": false,
  "editor.codeLensFontSize": 16,
  "telemetry.telemetryLevel": "off",
  "editor.fontSize": 16
}

Golang

{
    "workbench.colorTheme": "Tokyo Night",
    "workbench.colorCustomizations": {
        "editor.background": "#000000",
        "sideBar.background": "#000000",
        "terminal.background": "#000000",
        "activityBar.background": "#000000",
        "activityBar.border": "#000000",
        "activityBar.activeBorder": "#000000",
        "dropdown.background": "#000000",
        "dropdown.listBackground": "#000000",
        "dropdown.border": "#000000",
        "panel.background": "#000000",
        "statusBar.background": "#000000",
        "titleBar.activeBackground": "#000000",
        "titleBar.inactiveBackground": "#000000",
        "panelTitle.activeBorder": "#ff0000",
        "debugToolBar.background": "#000000",
        "menu.background": "#000000",
        "editorGroupHeader.tabsBackground": "#000000",
        "breadcrumb.background": "#000000",
        "editorGutter.background": "#000000"
    },
    "json.validate.enable": false,
    "json.schemaDownload.enable": true,
    "editor.fontFamily": "FiraCode Nerd Font",
    "editor.inlayHints.fontFamily": "FiraCode Nerd Font",
    "editor.minimap.enabled": false,
    "editor.fontSize": 16,
    "git.autofetch": true,
    "files.autoSave": "afterDelay",
    "editor.stickyScroll.enabled": true,
    "editor.selectionHighlight": false,
    "editor.suggest.snippetsPreventQuickSuggestions": false,
    "editor.suggestSelection": "first",
    "editor.tabCompletion": "onlySnippets",
    "editor.wordBasedSuggestions": "off",
    "redhat.telemetry.enabled": flase,
    "explorer.copyRelativePathSeparator": "/",
    "go.formatTool": "gofmt",
    "go.lintTool": "golangci-lint",
    "go.inferGopath": false,
    "go.buildOnSave": "workspace",
    "go.lintOnSave": "package",
    "go.vetOnSave": "package",
    "go.buildTags": "",
    "go.buildFlags": [],
    "go.lintFlags": [],
    "go.vetFlags": [],
    "go.coverOnSave": false,
    "go.useCodeSnippetsOnFunctionSuggest": true,
    "go.gocodeAutoBuild": true,
    "go.useLanguageServer": true,
    "go.alternateTools": {
        "go-langserver": "gopls"
    },
    "[go]": {
        "editor.formatOnSave": true,
        "editor.codeActionsOnSave": {
            "source.organizeImports": "explicit",
            "go.languageServerExperimentalFeatures": {
                "format": true,
                "autoComplete": true
            }
        }
    },
    "go.toolsManagement.autoUpdate": true,
    "gopls": {
        "ui.semanticTokens": true,
        "ui.completion.usePlaceholders": true
    },
    "terminal.integrated.fontFamily": "FiraCode Nerd Font",
    "editor.formatOnSave": true,
    "editor.cursorStyle": "underline",
    "editor.cursorBlinking": "phase",
    "editor.bracketPairColorization.enabled": true,
    "editor.formatOnType": true,
    "terminal.integrated.cursorStyle": "underline",
    "terminal.integrated.cursorWidth": 3,
    "terminal.integrated.cursorBlinking": true,
    "editor.renderLineHighlight": "none",
    "editor.cursorSmoothCaretAnimation": "on",
    "security.workspace.trust.untrustedFiles": "open",
    "editor.unicodeHighlight.nonBasicASCII": false,
    "editor.wordWrap": "on",
    "markdownlint.ignore": [
        "MD010"
    ],
    "markdownlint.config": {
        "no-hard-tabs": false,
        "no-duplicate-heading": false,
        "no-duplicate-header": false,
        "ol-prefix": false
    },
    "workbench.iconTheme": "material-icon-theme",
    "editor.codeLensFontFamily": "FiraCode Nerd Font",
    "[markdown]": {
        "editor.defaultFormatter": "DavidAnson.vscode-markdownlint"
    },
    "[typescript]": {
        "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    "terminal.integrated.fontSize": 15,
    "files.autoSaveDelay": 500,
    "makefile.configureOnOpen": true
}

Flutter & Dart

{
  "workbench.iconTheme": "material-icon-theme",
  "workbench.colorTheme": "Tokyo Night",
  "workbench.colorCustomizations": {
    "editor.background": "#000000",
    "sideBar.background": "#000000",
    "terminal.background": "#000000",
    "activityBar.background": "#000000",
    "activityBar.border": "#000000",
    "activityBar.activeBorder": "#000000",
    "dropdown.background": "#000000",
    "dropdown.listBackground": "#000000",
    "dropdown.border": "#000000",
    "panel.background": "#000000",
    "statusBar.background": "#000000",
    "titleBar.activeBackground": "#000000",
    "titleBar.inactiveBackground": "#000000",
    "panelTitle.activeBorder": "#ff0000",
    "debugToolBar.background": "#000000",
    "menu.background": "#000000",
    "editorGroupHeader.tabsBackground": "#000000",
    "breadcrumb.background": "#000000",
    "editorGutter.background": "#000000"
  },
  "[json]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[markdown]": {
    "editor.defaultFormatter": "DavidAnson.vscode-markdownlint"
  },
  "json.validate.enable": true,
  "editor.codeLensFontFamily": "FiraCode Nerd Font",
  "json.schemaDownload.enable": true,
  "editor.fontFamily": "FiraCode Nerd Font",
  "editor.inlayHints.fontFamily": "FiraCode Nerd Font",
  "git.autofetch": true,
  "yaml.customTags": [
    "!And",
    "!And sequence",
    "!If",
    "!If sequence",
    "!Not",
    "!Not sequence",
    "!Equals",
    "!Equals sequence",
    "!Or",
    "!Or sequence",
    "!FindInMap",
    "!FindInMap sequence",
    "!Base64",
    "!Join",
    "!Join sequence",
    "!Cidr",
    "!Ref",
    "!Sub",
    "!Sub sequence",
    "!GetAtt",
    "!GetAZs",
    "!ImportValue",
    "!ImportValue sequence",
    "!Select",
    "!Select sequence",
    "!Split",
    "!Split sequence"
  ],
  "files.autoSave": "afterDelay",
  "debug.openDebug": "openOnDebugBreak",
  "debug.internalConsoleOptions": "openOnSessionStart",
  "[dart]": {
    "editor.formatOnSave": true,
    "editor.formatOnType": true,
    "editor.bracketPairColorization.enabled": true,
    "editor.tabSize": 4,
    "editor.insertSpaces": true,
    "editor.detectIndentation": true,
    "editor.stickyScroll.enabled": true,
    "editor.selectionHighlight": true,
    "editor.suggest.snippetsPreventQuickSuggestions": false,
    "editor.suggestSelection": "first",
    "editor.tabCompletion": "onlySnippets",
    "editor.wordBasedSuggestions": "off"
  },
  "editor.tabSize": 4,
  "editor.insertSpaces": true,
  "editor.detectIndentation": true,
  "editor.minimap.enabled": false,
  "dart.enableSdkFormatter": true,
  "dart.previewFlutterUiGuides": true,

  "dart.previewFlutterUiGuidesCustomTracking": true,
  "explorer.fileNesting.patterns": {
    "*.dart": "${capture}.g.dart, ${capture}.freezed.dart"
  },
  "explorer.fileNesting.enabled": true,
  "explorer.fileNesting.expand": false,
  "terminal.integrated.fontFamily": "FiraCode Nerd Font",
  "editor.formatOnSave": true,
  "editor.bracketPairColorization.enabled": true,
  "editor.formatOnType": true,
  "terminal.integrated.cursorStyle": "underline",
  "terminal.integrated.cursorWidth": 3,
  "terminal.integrated.cursorBlinking": true,
  "editor.unicodeHighlight.nonBasicASCII": false,
  "editor.wordWrap": "on",

  "markdownlint.config": {
    "no-hard-tabs": false,
    "no-duplicate-heading": false,
    "no-duplicate-header": false,
    "ol-prefix": false
  },
  "editor.cursorStyle": "underline",
  "editor.fontSize": 16,
  "editor.cursorSmoothCaretAnimation": "on",
  "editor.cursorBlinking": "phase",
  "editor.renderLineHighlight": "none",
  "editor.codeActionsOnSave": {
    "dart.previewFlutterUiGuides": "explicit",
    "source.fixAll": "always",
    "source.organizeImports": "explicit"
  },
  "[jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "redhat.telemetry.enabled": false,
  "terminal.integrated.fontSize": 15
}

Python

{
  "python.analysis.autoImportCompletions": true,
  "python.analysis.fixAll": [
    "source.unusedImports"
  ],
  {
    "python.terminal.activateEnvironment": true,
    "python.defaultInterpreterPath": "${workspaceFolder}/.venv/Scripts/python.exe"
},
  "pylint.args": [
    "--disable=C0116",
    "--disable=C0111",
    "--disable=C0114",
    "--disable=C0103",
    "--disable=W0703",
    "--disable=C0301",
    "--disable=W1203",
  ],
  "powershell.codeFormatting.useCorrectCasing": true,
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.codeActionsOnSave": {
    "source.organizeImports": "explicit"
  },
  "files.exclude": {
    "**/__pycache__": true,
    "**/.cache": true,
    "**/.coverage": true,
    "**/.coverage.*": true,
    "**/.hypothesis": true,
    "**/.mypy_cache": true,
    "**/.nox": true,
    "**/.pytest_cache": true,
    "**/.ruff_cache": true,
    "**/.tox": true
  },
  "workbench.colorTheme": "Tokyo Night",
  "workbench.colorCustomizations": {
    "editor.background": "#000000",
    "sideBar.background": "#000000",
    "terminal.background": "#000000",
    "activityBar.background": "#000000",
    "activityBar.border": "#000000",
    "activityBar.activeBorder": "#000000",
    "dropdown.background": "#000000",
    "dropdown.listBackground": "#000000",
    "dropdown.border": "#000000",
    "panel.background": "#000000",
    "statusBar.background": "#000000",
    "titleBar.activeBackground": "#000000",
    "titleBar.inactiveBackground": "#000000",
    "panelTitle.activeBorder": "#ff0000",
    "debugToolBar.background": "#000000",
    "menu.background": "#000000",
    "editorGroupHeader.tabsBackground": "#000000",
    "breadcrumb.background": "#000000",
    "editorGutter.background": "#000000",
    "notebook.editorBackground": "#000000",
    "notebook.selectedCellBackground": "#000000",
    "notebook.cellBorderColor": "#000000",
    "notebook.focusedCellBackground": "#000000",
    "notebook.focusedEditorBorder": "#000000",
    "notebook.focusedCellBorder": "#000000",
    "notebookEditorOverviewRuler.runningCellForeground": "#000000",
    "editorWidget.background": "#000000"
  },
  "workbench.iconTheme": "material-icon-theme",
  "json.validate.enable": false,
  "json.schemaDownload.enable": true,
  "editor.fontFamily": "FiraCode Nerd Font",
  "editor.inlayHints.fontFamily": "CaskaydiaCove NF",
  "editor.minimap.enabled": false,
  "editor.fontSize": 16,
  "git.autofetch": true,
  "files.autoSave": "onFocusChange",
  "markdownlint.config": {
    "no-hard-tabs": false,
    "no-duplicate-heading": false,
    "no-duplicate-header": false,
    "ol-prefix": false
  },
  "editor.codeLensFontFamily": "FiraCode Nerd Font",
  "editor.cursorStyle": "underline",
  "debug.console.fontFamily": "CaskaydiaCove Nerd Font",
  "explorer.fileNesting.enabled": true,
  "explorer.fileNesting.expand": false,
  "terminal.integrated.fontFamily": "FiraCode Nerd Font",
  "editor.formatOnSave": true,
  "editor.cursorStyle": "underline",
  "editor.cursorBlinking": "phase",
  "editor.bracketPairColorization.enabled": true,
  "editor.formatOnType": true,
  "terminal.integrated.cursorStyle": "underline",
  "terminal.integrated.cursorWidth": 3,
  "terminal.integrated.cursorBlinking": true,
  "editor.cursorSmoothCaretAnimation": "on",
  "editor.unicodeHighlight.nonBasicASCII": false,
  "editor.wordWrap": "on",
  "[jsonc]": {
    "editor.defaultFormatter": "vscode.json-language-features"
  },
  "[markdown]": {
    "editor.defaultFormatter": "DavidAnson.vscode-markdownlint",
  },
  "[json]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "[python]": {
    "editor.defaultFormatter": "charliermarsh.ruff",
    "editor.formatOnType": true,
    "editor.formatOnSave": true,
    "editor.codeActionsOnSave": {
      "source.fixAll": "explicit",
      "source.organizeImports": "explicit"
    },
  },
  "notebook.formatOnSave.enabled": true,
  "notebook.codeActionsOnSave": {
    "notebook.source.fixAll": "explicit",
    "notebook.source.organizeImports": "explicit"
  },
  "notebook.formatOnCellExecution": true,
  "notebook.formatOnSave.enabled": true,
  "redhat.telemetry.enabled": false,
  "[xml]": {
    "editor.defaultFormatter": "redhat.vscode-xml"
  },
  "editor.colorDecoratorsLimit": 50000,
  "editor.largeFileOptimizations": false,
  "editor.unicodeHighlight.invisibleCharacters": false,
  "editor.unicodeHighlight.ambiguousCharacters": false,
  "xml.symbols.maxItemsComputed": 500000,
  "diffEditor.hideUnchangedRegions.enabled": true,
  "explorer.copyPathSeparator": "/",
  "explorer.copyRelativePathSeparator": "/",
  "evenBetterToml.formatter.columnWidth": 0,
  "editor.foldingMaximumRegions": 50000,
  "json.maxItemsComputed": 500000,
  "terminal.integrated.fontSize": 15,
  "notebook.markup.fontFamily": "FiraCode Nerd Font",
  "notebook.markup.fontSize": 15,
  "notebook.output.fontFamily": "FiraCode Nerd Font",
  "notebook.output.fontSize": 15,
  "dataWrangler.experiments.copilot.enabled": false,
  "python.analysis.typeCheckingMode": "standard",
  "makefile.configureOnOpen": true,
}

Web

{
  "workbench.iconTheme": "material-icon-theme",
  "workbench.colorCustomizations": {
    "editor.background": "#000000",
    "sideBar.background": "#000000",
    "terminal.background": "#000000",
    "activityBar.background": "#000000",
    "activityBar.border": "#000000",
    "activityBar.activeBorder": "#000000",
    "dropdown.background": "#000000",
    "dropdown.listBackground": "#000000",
    "dropdown.border": "#000000",
    "panel.background": "#000000",
    "statusBar.background": "#000000",
    "titleBar.activeBackground": "#000000",
    "titleBar.inactiveBackground": "#000000",
    "panelTitle.activeBorder": "#ff0000",
    "debugToolBar.background": "#000000",
    "menu.background": "#000000",
    "editorGroupHeader.tabsBackground": "#000000",
    "breadcrumb.background": "#000000",
    "editorGutter.background": "#000000"
  },
  "editor.fontFamily": "FiraCode Nerd Font",
  "editor.fontSize": 15,
  "terminal.integrated.fontFamily": "FiraCode Nerd Font",
  "terminal.integrated.fontSize": 13,
  "editor.codeLensFontSize": 10,
  "editor.codeLensFontFamily": "FiraCode Nerd Font",
  "editor.minimap.enabled": false,
  "json.validate.enable": false,
  "json.schemaDownload.enable": true,
  "editor.inlayHints.fontFamily": "FiraCode Nerd Font",
  "editor.minimap.enabled": false,
  "files.autoSave": "afterDelay",
  "[svelte]": {
    "editor.defaultFormatter": "svelte.svelte-vscode"
  },
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.formatOnSave": true,
  // Use a specific formatter for JavaScript and TypeScript
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[javascriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "explicit"
  },
  "yaml.customTags": [
    "!And",
    "!And sequence",
    "!If",
    "!If sequence",
    "!Not",
    "!Not sequence",
    "!Equals",
    "!Equals sequence",
    "!Or",
    "!Or sequence",
    "!FindInMap",
    "!FindInMap sequence",
    "!Base64",
    "!Join",
    "!Join sequence",
    "!Cidr",
    "!Ref",
    "!Sub",
    "!Sub sequence",
    "!GetAtt",
    "!GetAZs",
    "!ImportValue",
    "!ImportValue sequence",
    "!Select",
    "!Select sequence",
    "!Split",
    "!Split sequence"
  ],
  "editor.formatOnSave": true,
  "editor.cursorStyle": "underline",
  "editor.cursorBlinking": "phase",
  "editor.renderLineHighlight": "none",
  "editor.bracketPairColorization.enabled": true,
  "editor.formatOnType": true,
  "terminal.integrated.cursorStyle": "underline",
  "terminal.integrated.cursorWidth": 3,
  "terminal.integrated.cursorBlinking": true,
  "editor.cursorSmoothCaretAnimation": "on",
  "editor.unicodeHighlight.nonBasicASCII": false,
  "editor.wordWrap": "on",
  "css.format.spaceAroundSelectorSeparator": true,
  "typescript.enablePromptUseWorkspaceTsdk": true,
  "files.insertFinalNewline": true,
  "npm.packageManager": "pnpm",
  "editor.insertSpaces": false,
  "files.trimTrailingWhitespace": true,
  "markdownlint.config": {
    "no-hard-tabs": false,
    "no-duplicate-heading": false,
    "no-duplicate-header": false,
    "ol-prefix": false
  },
  "[markdown]": {
    "editor.defaultFormatter": "DavidAnson.vscode-markdownlint",
    "editor.formatOnSave": true
  },
  "[typescript]": {
    "editor.defaultFormatter": "vscode.typescript-language-features",
    "editor.formatOnSave": true
  },
  "[javascript]": {
    "editor.defaultFormatter": "vscode.typescript-language-features",
    "editor.formatOnSave": true
  },
  "[jsonc]": {
    "editor.defaultFormatter": "vscode.json-language-features",
    "editor.formatOnSave": true
  },
  "[json]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnSave": true
  },
  "redhat.telemetry.enabled": false,
  "editor.linkedEditing": true,
  "[html]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "workbench.colorTheme": "Tokyo Night",
  "[css]": {
    "editor.defaultFormatter": "vscode.css-language-features"
  },
  "[typescriptreact]": {
    "editor.defaultFormatter": "vscode.typescript-language-features"
  },
  "errorLens.fontFamily": "FiraCode Nerd Font",
  "editor.fontLigatures": true,
  "svelte.enable-ts-plugin": true,
  "typescript.updateImportsOnFileMove.enabled": "always"
}

PowerShell

# ====================================================================
# PowerShell Profile Configuration (Final Comprehensive Version)
# ====================================================================

# --- 1. Core Configuration and Encoding ---
## Ensures proper display of international characters and symbols
[Console]::OutputEncoding = [Text.Encoding]::UTF8
$OutputEncoding = [Text.Encoding]::UTF8
$PSDefaultParameterValues['Out-File:Encoding'] = 'utf8'

# Set the initial window title
$host.UI.RawUI.WindowTitle = "PowerShellCore"


# --- 2. Module Management and Automatic Installation ---

function Install-ModuleIfMissing {
    param(
        [Parameter(Mandatory=$true)]
        [string]$ModuleName
    )

    if (-not (Get-Module -ListAvailable -Name $ModuleName)) {
        Write-Warning "Module '$ModuleName' not found. Installing now..."

        # Ask for confirmation before installing from PS Gallery
        $install = Read-Host "Do you want to install '$ModuleName' from the PowerShell Gallery? (Y/N)"
        if ($install -ceq 'Y') {
            try {
                Install-Module -Name $ModuleName -Force -Scope CurrentUser -ErrorAction Stop
                Write-Host "Successfully installed $ModuleName." -ForegroundColor Green
            } catch {
                Write-Error "Failed to install $ModuleName. Reason: $($_.Exception.Message)"
                return $false
            }
        } else {
            Write-Warning "Skipping installation of $ModuleName."
            return $false
        }
    }
    return $true
}


# --- 3. Module Imports and Configuration ---

# Terminal-Icons (Visual file icons)
if (Install-ModuleIfMissing -ModuleName Terminal-Icons) {
    Import-Module -Name Terminal-Icons
}

# PSReadLine (Better command-line editing/history)
if (Install-ModuleIfMissing -ModuleName PSReadLine) {
    Import-Module -Name PSReadLine
    Set-PSReadLineOption -PredictionSource History
    Set-PSReadLineOption -PredictionViewStyle ListView
    Set-PSReadLineOption -EditMode Windows
}


# --- 4. Prompt Configuration (Oh-My-Posh) ---

$ohMyPoshThemePath = "$POSH_PROFILE\zash.omp.json"

if (Get-Command -Name oh-my-posh -ErrorAction SilentlyContinue) {
    oh-my-posh init pwsh --config $ohMyPoshThemePath | Invoke-Expression
} else {
    Write-Warning "Oh-My-Posh command not found. Ensure it is installed and in your PATH."
}


# --- 5. Helpful Utility Functions ---

# Function to quickly edit the current profile
function Edit-Profile {
    param(
        [string]$Editor = "code" # Change 'code' to your preferred editor
    )
    if (Get-Command $Editor -ErrorAction SilentlyContinue) {
        & $Editor $profile
    } else {
        Write-Error "Editor '$Editor' not found. Please install it or change the default editor."
    }
}
Set-Alias -Name pro -Value Edit-Profile

# Function to reload the profile immediately
function Reload-Profile {
    Write-Host "Reloading Profile..." -ForegroundColor Yellow
    . $profile
}
Set-Alias -Name rl -Value Reload-Profile

# Simple Directory Jumper based on location history
function j {
    param(
        [Parameter(Mandatory=$false)]
        [string]$Filter
    )

    $History = Get-Location -Stack | Select-Object -Skip 1
    if ($History.Count -gt 0) {
        if ($Filter) {
            $History = $History | Where-Object { $_.Path -like "*$Filter*" }
        }

        if ($History.Count -gt 0) {
            Write-Host "--- Jump to Directory ---" -ForegroundColor Cyan
            $History | Select-Object -Index (0..($History.Count - 1)) -Property @{N='Index'; E={$_.Index + 1}}, Path | Format-Table -AutoSize

            $Index = Read-Host "Enter the Index number to jump (or press Enter to cancel)"
            if ($Index -as [int]) {
                if ($Index -le $History.Count -and $Index -gt 0) {
                    Set-Location -Stack $History[$Index - 1].StackName
                    Write-Host "Jumped to: $(Get-Location)" -ForegroundColor Green
                } else {
                    Write-Warning "Invalid index selection."
                }
            }
        } else {
            Write-Host "No matching directories in history." -ForegroundColor Yellow
        }
    } else {
        Write-Host "No recent directories in history to jump to." -ForegroundColor Yellow
    }
}
Set-Alias -Name z -Value j # Set 'z' as the alias for quick jumping

# Function to temporarily set a variable for the current session
# Function to temporarily set a variable for the current session
function Set-Env {
    param(
        [Parameter(Mandatory=$true)]
        [string]$Name,
        [Parameter(Mandatory=$true)]
        [string]$Value
    )

    # CORRECTED LINE: Use braced notation ${env:Name} to resolve the variable name correctly
    ${env:$Name} = $Value

    Write-Host "Set $Name to '$Value' (Current Session Only)" -ForegroundColor Green
}
Set-Alias -Name se -Value Set-Env

# Function to clear the current variable
function Clear-Env {
    param(
        [Parameter(Mandatory=$true)]
        [string]$Name
    )
    if (Get-Item Env:\$Name -ErrorAction SilentlyContinue) {
        Remove-Item Env:\$Name
        Write-Host "Removed environment variable: $Name" -ForegroundColor Yellow
    } else {
        Write-Warning "Environment variable $Name does not exist."
    }
}
Set-Alias -Name ce -Value Clear-Env

# Function to clear Node module caches
function Clean-NodeCache {
    Write-Host "Clearing Node/NPM cache..." -ForegroundColor Yellow
    npm cache clean --force | Out-Null
    Write-Host "NPM cache cleared." -ForegroundColor Green
}
Set-Alias -Name cnc -Value Clean-NodeCache

# Function to find all node_modules folders
function Find-Modules {
    Write-Host "Searching for 'node_modules' directories..." -ForegroundColor Cyan
    Get-ChildItem -Path (Get-Location) -Recurse -Directory -Filter "node_modules" -ErrorAction SilentlyContinue | Format-Table FullName -AutoSize
}
Set-Alias -Name fmod -Value Find-Modules

# Function to get your public IP address
function Get-PublicIP {
    try {
        $IP = Invoke-RestMethod -Uri "http://ipinfo.io/ip" -TimeoutSec 5
        Write-Host "Public IP Address: $IP" -ForegroundColor Yellow
    } catch {
        Write-Warning "Could not retrieve public IP."
    }
}
Set-Alias -Name myip -Value Get-PublicIP


# --- 6. Common Linux Aliases and Functions (Corrected) ---

# Fix for AllScope Alias Conflicts:
# Remove built-in aliases like 'cp' and 'mv' so we can redefine them without error.
Remove-Item Alias:\cp -Force -ErrorAction SilentlyContinue
Remove-Item Alias:\mv -Force -ErrorAction SilentlyContinue

# Function for Linux-style 'll' (long list - detailed view)
function ll {
    Get-ChildItem -Force | Format-List
}

# Function for Linux-style 'mkdir' (make directory)
function mkdir {
    param(
        [Parameter(Mandatory=$true, ValueFromRemainingArguments=$true)]
        [string[]]$Path
    )
    foreach ($p in $Path) {
        New-Item -Path $p -ItemType Directory -Force | Out-Null
    }
}

# --- Standard Aliases ---
# File/Directory Navigation & Inspection
Set-Alias -Name ls    -Value Get-ChildItem
Set-Alias -Name cat   -Value Get-Content
Set-Alias -Name cp    -Value Copy-Item -Force
Set-Alias -Name mv    -Value Move-Item -Force
Set-Alias -Name rm    -Value Remove-Item
Set-Alias -Name pwd   -Value Get-Location
Set-Alias -Name man   -Value Get-Help
Set-Alias -Name grep  -Value Select-String

# Utility & System Commands
Set-Alias -Name c     -Value Clear-Host
Set-Alias -Name top   -Value Get-Process
Set-Alias -Name kill  -Value Stop-Process

# Git Aliases
# Set-Alias -Name g     -Value git
# Set-Alias -Name gs    -Value git status
# Set-Alias -Name ga    -Value git add
# Set-Alias -Name gc    -Value git commit
# Set-Alias -Name gp    -Value git push
# Set-Alias -Name gl    -Value git pull
# Set-Alias -Name gco   -Value git checkout

# Node/Package Manager Aliases
Set-Alias -Name pn    -Value pnpm


# --- 7. PSReadLine Enhancements (Alias Completion) ---

# Function to expand the alias before calling the built-in completion logic.
function Expand-AliasCompletion {
    param(
        [ValidateScript({$_.ast.Extent.Text -ne $null})]
        [System.Management.Automation.Language.Ast]$ast,
        [int]$cursor
    )

    $word = $ast.Extent.Text.Substring(0, $cursor)
    $words = $word -split '\s+'
    $command = $words[0]

    # Check if the first word is a custom alias (and not a function)
    if ($words.Count -gt 0 -and (Get-Alias -Name $command -ErrorAction SilentlyContinue)) {
        $definition = (Get-Alias -Name $command).Definition

        # Construct the new command string: replace alias with definition
        $newCommand = "$definition" + $word.Substring($command.Length)

        # Call the default PowerShell completion on the expanded command
        [System.Management.Automation.CommandCompletion]::CompleteInput($newCommand, $cursor)
    }
    # If not an alias, use the default PSReadLine completion
    else {
        [System.Management.Automation.CommandCompletion]::CompleteInput($ast.Extent.Text, $cursor)
    }
}

# --- 7. PSReadLine Enhancements (Alias Completion) ---

# NOTE: When using -ScriptBlock, you MUST NOT specify -Function, as that parameter
# is only used for calling one of PSReadLine's built-in functions.

# Bind the Tab key to the custom completion logic using only -Key and -ScriptBlock.
Set-PSReadLineKeyHandler -Key Tab -ScriptBlock {
    # Get current AST (Abstract Syntax Tree) and cursor position from PSReadLine context
    param(
        [System.Management.Automation.Language.Ast]$ast,
        [int]$cursor
    )

    $fullText = $ast.Extent.Text
    if ([string]::IsNullOrEmpty($fullText)) {
        # If the input is empty or null, fall back to default completion
        [System.Management.Automation.CommandCompletion]::CompleteInput($fullText, $cursor)
        return
    }

    $word = $fullText.Substring(0, $cursor)
    $words = $word -split '\s+'
    $command = $words[0]

    # Check if the first word is a custom alias
    if ($words.Count -gt 0 -and (Get-Alias -Name $command -ErrorAction SilentlyContinue)) {
        $definition = (Get-Alias -Name $command).Definition

        # Construct the new command string: replace alias with definition
        $newCommand = "$definition" + $word.Substring($command.Length)

        # Call the default PowerShell completion on the expanded command
        [System.Management.Automation.CommandCompletion]::CompleteInput($newCommand, $cursor)
    }
    # If not an alias, use the default PSReadLine completion
    else {
        [System.Management.Automation.CommandCompletion]::CompleteInput($fullText, $cursor)
    }
}

# --- 8. Startup Tasks ---

# Clear DNS cache on startup
ipconfig /flushdns | Out-Null

Oh-My-Posh

  • zsh.omp.json
{
  "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  "blocks": [
    {
      "alignment": "left",
      "segments": [
        {
          "foreground": "#FF0000",
          "style": "plain",
          "template": "@{{ .UserName }} ",
          "type": "session"
        },
        {
          "foreground": "#62ED8B",
          "style": "plain",
          "template": "",
          "type": "text"
        },
        {
          "foreground": "#56B6C2",
          "properties": {
            "style": "folder"
          },
          "style": "plain",
          "template": " {{ .Path }}",
          "type": "path"
        },
        {
          "foreground": "#D4AAFC",
          "properties": {
            "branch_icon": ""
          },
          "style": "plain",
          "template": " <#DDB15F>git(</>{{ .HEAD }}<#DDB15F>)</>",
          "type": "git"
        },
        {
          "foreground": "#DCB977",
          "style": "plain",
          "template": "",
          "type": "status"
        }
      ],
      "type": "prompt"
    },
    {
      "alignment": "right",
      "segments": [
        {
          "foreground": "#FFFFFF",
          "style": "powerline",
          "template": "Time:{{ .FormattedMs }}",
          "type": "executiontime",
          "properties": {
            "threshold": 10
          }
        }
      ],
      "type": "rprompt"
    }
  ],
  "final_space": true,
  "version": 3
}

Windows Terminal

{
    "$help": "https://aka.ms/terminal-documentation",
    "$schema": "https://aka.ms/terminal-profiles-schema",
    "actions": 
    [
        {
            "command": 
            {
                "action": "copy",
                "singleLine": false
            },
            "id": "User.copy.644BA8F2"
        },
        {
            "command": "paste",
            "id": "User.paste"
        },
        {
            "command": "find",
            "id": "User.find"
        },
        {
            "command": 
            {
                "action": "splitPane",
                "split": "auto",
                "splitMode": "duplicate"
            },
            "id": "User.splitPane.A6751878"
        }
    ],
    "copyFormatting": "none",
    "copyOnSelect": false,
    "defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
    "keybindings": 
    [
        {
            "id": "User.copy.644BA8F2",
            "keys": "ctrl+c"
        },
        {
            "id": "User.paste",
            "keys": "ctrl+v"
        },
        {
            "id": "User.find",
            "keys": "ctrl+shift+f"
        },
        {
            "id": "User.splitPane.A6751878",
            "keys": "alt+shift+d"
        }
    ],
    "newTabMenu": 
    [
        {
            "type": "remainingProfiles"
        }
    ],
    "profiles": 
    {
        "defaults": 
        {
            "colorScheme": "CGA",
            "cursorShape": "underscore",
            "elevate": true,
            "font": 
            {
                "face": "FiraCode Nerd Font"
            },
            "opacity": 100,
            "padding": "10",
            "useAcrylic": false
        },
        "list": 
        [
            {
                "commandline": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
                "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "hidden": false,
                "name": "Windows PowerShell"
            },
            {
                "commandline": "%SystemRoot%\\System32\\cmd.exe",
                "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
                "hidden": false,
                "name": "Command Prompt"
            },
            {
                "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
                "hidden": false,
                "name": "Azure Cloud Shell",
                "source": "Windows.Terminal.Azure"
            },
            {
                "guid": "{2ece5bfe-50ed-5f3a-ab87-5cd4baafed2b}",
                "hidden": false,
                "name": "Git Bash",
                "source": "Git"
            },
            {
                "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
                "hidden": false,
                "name": "PowerShell",
                "source": "Windows.Terminal.PowershellCore"
            },
            {
                "guid": "{38e143d4-5a31-5726-af0e-31a459f8413c}",
                "hidden": false,
                "name": "Developer Command Prompt for VS 2022",
                "source": "Windows.Terminal.VisualStudio"
            },
            {
                "guid": "{39eaf711-fff3-573a-acb7-3d4559507f72}",
                "hidden": false,
                "name": "Developer PowerShell for VS 2022",
                "source": "Windows.Terminal.VisualStudio"
            }
        ]
    },
    "rendering.graphicsAPI": "direct3d11",
    "schemes": [],
    "theme": "Example",
    "themes": 
    [
        {
            "name": "Example",
            "tab": 
            {
                "background": "terminalBackground",
                "iconStyle": "default",
                "showCloseButton": "always",
                "unfocusedBackground": "#FFFFFF00"
            },
            "tabRow": 
            {
                "background": "terminalBackground",
                "unfocusedBackground": "terminalBackground"
            },
            "window": 
            {
                "applicationTheme": "dark",
                "experimental.rainbowFrame": false,
                "frame": null,
                "unfocusedFrame": null,
                "useMica": false
            }
        }
    ]
}

ZED

{
  "agent": {
    "default_model": {
      "provider": "google",
      "model": "gemini-2.5-flash"
    },
    "model_parameters": []
  },
  "buffer_font_size": 17.0,
  "autosave": {
    "after_delay": {
      "milliseconds": 1000
    }
  },
  "features": {
    "edit_prediction_provider": "none"
  },
  "title_bar": {
    "show_branch_icon": false
  },
  "prettier": {
    "allowed": true
  },
  "buffer_font_family": "FiraCode Nerd Font",
  "icon_theme": "Material Icon Theme",
  "theme": "v0-dark",
  "auto_indent": true,
  "auto_update": true,
  "base_keymap": "VSCode",
  "diagnostics_max_severity": "all",
  "edit_predictions": {
    "disabled_globs": [
      "**/.env*",
      "**/*.pem",
      "**/*.key",
      "**/*.cert",
      "**/*.crt",
      "**/.dev.vars",
      "**/secrets.yml"
    ]
  },
  "hide_mouse": "on_typing",
  "scrollbar": {
    "show": "system"
  },
  "tab_bar": {
    "show": true,
    "show_nav_history_buttons": true,
    "show_tab_bar_buttons": true
  },
  "enable_language_server": true,
  "ensure_final_newline_on_save": true,
  "format_on_save": "on",
  "formatter": "language_server",
  "global_lsp_settings": {
    "button": true
  },
  "use_autoclose": true,
  "diagnostics": {
    "include_warnings": true,
    "inline": {
      "enabled": true
    }
  },
  "go_to_definition_fallback": "find_all_references",
  "indent_guides": {
    "enabled": true
  },
  "ui_font_features": {
    "calt": true
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment