├── .editorconfig ├── .gitattributes ├── .gitignore ├── LICENSE.md ├── README.md └── Source ├── Git └── .gitconfig ├── Install.ps1 ├── PowerShell ├── Microsoft.PowerShell_profile.ps1 └── oh-my-posh.json └── Terminal └── settings.json /.editorconfig: -------------------------------------------------------------------------------- 1 | # Version: 4.0.0 (Using https://semver.org/) 2 | # Updated: 2021-10-12 3 | # See https://github.com/RehanSaeed/EditorConfig/releases for release notes. 4 | # See https://github.com/RehanSaeed/EditorConfig for updates to this file. 5 | # See http://EditorConfig.org for more information about .editorconfig files. 6 | 7 | ########################################## 8 | # Common Settings 9 | ########################################## 10 | 11 | # This file is the top-most EditorConfig file 12 | root = true 13 | 14 | # All Files 15 | [*] 16 | charset = utf-8 17 | indent_style = space 18 | indent_size = 4 19 | insert_final_newline = true 20 | trim_trailing_whitespace = true 21 | 22 | ########################################## 23 | # File Extension Settings 24 | ########################################## 25 | 26 | # Visual Studio Solution Files 27 | [*.sln] 28 | indent_style = tab 29 | 30 | # Visual Studio XML Project Files 31 | [*.{csproj,vbproj,vcxproj.filters,proj,projitems,shproj}] 32 | indent_size = 2 33 | 34 | # XML Configuration Files 35 | [*.{xml,config,props,targets,nuspec,resx,ruleset,vsixmanifest,vsct}] 36 | indent_size = 2 37 | 38 | # JSON Files 39 | [*.{json,json5,webmanifest}] 40 | indent_size = 2 41 | 42 | # YAML Files 43 | [*.{yml,yaml}] 44 | indent_size = 2 45 | 46 | # Markdown Files 47 | [*.md] 48 | trim_trailing_whitespace = false 49 | 50 | # Web Files 51 | [*.{htm,html,js,jsm,ts,tsx,css,sass,scss,less,pcss,svg,vue}] 52 | indent_size = 2 53 | 54 | # Batch Files 55 | [*.{cmd,bat}] 56 | end_of_line = crlf 57 | 58 | # Bash Files 59 | [*.sh] 60 | end_of_line = lf 61 | 62 | # Makefiles 63 | [Makefile] 64 | indent_style = tab 65 | 66 | ########################################## 67 | # Default .NET Code Style Severities 68 | # https://docs.microsoft.com/dotnet/fundamentals/code-analysis/configuration-options#scope 69 | ########################################## 70 | 71 | [*.{cs,csx,cake,vb,vbx}] 72 | # Default Severity for all .NET Code Style rules below 73 | dotnet_analyzer_diagnostic.severity = warning 74 | 75 | ########################################## 76 | # Language Rules 77 | # https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/language-rules 78 | ########################################## 79 | 80 | # .NET Style Rules 81 | # https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/language-rules#net-style-rules 82 | [*.{cs,csx,cake,vb,vbx}] 83 | # "this." and "Me." qualifiers 84 | dotnet_style_qualification_for_field = true:warning 85 | dotnet_style_qualification_for_property = true:warning 86 | dotnet_style_qualification_for_method = true:warning 87 | dotnet_style_qualification_for_event = true:warning 88 | # Language keywords instead of framework type names for type references 89 | dotnet_style_predefined_type_for_locals_parameters_members = true:warning 90 | dotnet_style_predefined_type_for_member_access = true:warning 91 | # Modifier preferences 92 | dotnet_style_require_accessibility_modifiers = always:warning 93 | csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:warning 94 | visual_basic_preferred_modifier_order = Partial,Default,Private,Protected,Public,Friend,NotOverridable,Overridable,MustOverride,Overloads,Overrides,MustInherit,NotInheritable,Static,Shared,Shadows,ReadOnly,WriteOnly,Dim,Const,WithEvents,Widening,Narrowing,Custom,Async:warning 95 | dotnet_style_readonly_field = true:warning 96 | # Parentheses preferences 97 | dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:warning 98 | dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:warning 99 | dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:warning 100 | dotnet_style_parentheses_in_other_operators = never_if_unnecessary:warning 101 | # Expression-level preferences 102 | dotnet_style_object_initializer = true:warning 103 | dotnet_style_collection_initializer = true:warning 104 | dotnet_style_explicit_tuple_names = true:warning 105 | dotnet_style_prefer_inferred_tuple_names = true:warning 106 | dotnet_style_prefer_inferred_anonymous_type_member_names = true:warning 107 | dotnet_style_prefer_auto_properties = true:warning 108 | dotnet_style_prefer_conditional_expression_over_assignment = false:suggestion 109 | dotnet_diagnostic.IDE0045.severity = suggestion 110 | dotnet_style_prefer_conditional_expression_over_return = false:suggestion 111 | dotnet_diagnostic.IDE0046.severity = suggestion 112 | dotnet_style_prefer_compound_assignment = true:warning 113 | dotnet_style_prefer_simplified_interpolation = true:warning 114 | dotnet_style_prefer_simplified_boolean_expressions = true:warning 115 | # Null-checking preferences 116 | dotnet_style_coalesce_expression = true:warning 117 | dotnet_style_null_propagation = true:warning 118 | dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning 119 | # File header preferences 120 | # file_header_template = \n© PROJECT-AUTHOR\n 121 | # If you use StyleCop, you'll need to disable SA1636: File header copyright text should match. 122 | # dotnet_diagnostic.SA1636.severity = none 123 | # Undocumented 124 | dotnet_style_operator_placement_when_wrapping = end_of_line:warning 125 | csharp_style_prefer_null_check_over_type_check = true:warning 126 | dotnet_style_namespace_match_folder = true:suggestion 127 | dotnet_diagnostic.IDE0130.severity = suggestion 128 | 129 | # C# Style Rules 130 | # https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/language-rules#c-style-rules 131 | [*.{cs,csx,cake}] 132 | # 'var' preferences 133 | csharp_style_var_for_built_in_types = true:warning 134 | csharp_style_var_when_type_is_apparent = true:warning 135 | csharp_style_var_elsewhere = true:warning 136 | # Expression-bodied members 137 | csharp_style_expression_bodied_methods = true:warning 138 | csharp_style_expression_bodied_constructors = true:warning 139 | csharp_style_expression_bodied_operators = true:warning 140 | csharp_style_expression_bodied_properties = true:warning 141 | csharp_style_expression_bodied_indexers = true:warning 142 | csharp_style_expression_bodied_accessors = true:warning 143 | csharp_style_expression_bodied_lambdas = true:warning 144 | csharp_style_expression_bodied_local_functions = true:warning 145 | # Pattern matching preferences 146 | csharp_style_pattern_matching_over_is_with_cast_check = true:warning 147 | csharp_style_pattern_matching_over_as_with_null_check = true:warning 148 | csharp_style_prefer_switch_expression = true:warning 149 | csharp_style_prefer_pattern_matching = true:warning 150 | csharp_style_prefer_not_pattern = true:warning 151 | # Expression-level preferences 152 | csharp_style_inlined_variable_declaration = true:warning 153 | csharp_prefer_simple_default_expression = true:warning 154 | csharp_style_pattern_local_over_anonymous_function = true:warning 155 | csharp_style_deconstructed_variable_declaration = true:warning 156 | csharp_style_prefer_index_operator = true:warning 157 | csharp_style_prefer_range_operator = true:warning 158 | csharp_style_implicit_object_creation_when_type_is_apparent = true:warning 159 | # "Null" checking preferences 160 | csharp_style_throw_expression = true:warning 161 | csharp_style_conditional_delegate_call = true:warning 162 | # Code block preferences 163 | csharp_prefer_braces = true:warning 164 | csharp_prefer_simple_using_statement = true:suggestion 165 | dotnet_diagnostic.IDE0063.severity = suggestion 166 | # 'using' directive preferences 167 | csharp_using_directive_placement = inside_namespace:warning 168 | # Modifier preferences 169 | csharp_prefer_static_local_function = true:warning 170 | # Undocumented 171 | csharp_style_namespace_declarations = file_scoped:warning 172 | 173 | ########################################## 174 | # Unnecessary Code Rules 175 | # https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/unnecessary-code-rules 176 | ########################################## 177 | 178 | # .NET Unnecessary code rules 179 | [*.{cs,csx,cake,vb,vbx}] 180 | dotnet_code_quality_unused_parameters = all:warning 181 | dotnet_remove_unnecessary_suppression_exclusions = none:warning 182 | 183 | # C# Unnecessary code rules 184 | [*.{cs,csx,cake}] 185 | csharp_style_unused_value_expression_statement_preference = discard_variable:suggestion 186 | dotnet_diagnostic.IDE0058.severity = suggestion 187 | csharp_style_unused_value_assignment_preference = discard_variable:suggestion 188 | dotnet_diagnostic.IDE0059.severity = suggestion 189 | 190 | ########################################## 191 | # Formatting Rules 192 | # https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/formatting-rules 193 | ########################################## 194 | 195 | # .NET formatting rules 196 | # https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/formatting-rules#net-formatting-rules 197 | [*.{cs,csx,cake,vb,vbx}] 198 | # Organize using directives 199 | dotnet_sort_system_directives_first = true 200 | dotnet_separate_import_directive_groups = false 201 | 202 | # C# formatting rules 203 | # https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/formatting-rules#c-formatting-rules 204 | [*.{cs,csx,cake}] 205 | # Newline options 206 | # https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#new-line-options 207 | csharp_new_line_before_open_brace = all 208 | csharp_new_line_before_else = true 209 | csharp_new_line_before_catch = true 210 | csharp_new_line_before_finally = true 211 | csharp_new_line_before_members_in_object_initializers = true 212 | csharp_new_line_before_members_in_anonymous_types = true 213 | csharp_new_line_between_query_expression_clauses = true 214 | # Indentation options 215 | # https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#indentation-options 216 | csharp_indent_case_contents = true 217 | csharp_indent_switch_labels = true 218 | csharp_indent_labels = no_change 219 | csharp_indent_block_contents = true 220 | csharp_indent_braces = false 221 | csharp_indent_case_contents_when_block = false 222 | # Spacing options 223 | # https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#spacing-options 224 | csharp_space_after_cast = false 225 | csharp_space_after_keywords_in_control_flow_statements = true 226 | csharp_space_between_parentheses = false 227 | csharp_space_before_colon_in_inheritance_clause = true 228 | csharp_space_after_colon_in_inheritance_clause = true 229 | csharp_space_around_binary_operators = before_and_after 230 | csharp_space_between_method_declaration_parameter_list_parentheses = false 231 | csharp_space_between_method_declaration_empty_parameter_list_parentheses = false 232 | csharp_space_between_method_declaration_name_and_open_parenthesis = false 233 | csharp_space_between_method_call_parameter_list_parentheses = false 234 | csharp_space_between_method_call_empty_parameter_list_parentheses = false 235 | csharp_space_between_method_call_name_and_opening_parenthesis = false 236 | csharp_space_after_comma = true 237 | csharp_space_before_comma = false 238 | csharp_space_after_dot = false 239 | csharp_space_before_dot = false 240 | csharp_space_after_semicolon_in_for_statement = true 241 | csharp_space_before_semicolon_in_for_statement = false 242 | csharp_space_around_declaration_statements = false 243 | csharp_space_before_open_square_brackets = false 244 | csharp_space_between_empty_square_brackets = false 245 | csharp_space_between_square_brackets = false 246 | # Wrap options 247 | # https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#wrap-options 248 | csharp_preserve_single_line_statements = false 249 | csharp_preserve_single_line_blocks = true 250 | 251 | ########################################## 252 | # .NET Naming Rules 253 | # https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/naming-rules 254 | ########################################## 255 | 256 | [*.{cs,csx,cake,vb,vbx}] 257 | 258 | ########################################## 259 | # Styles 260 | ########################################## 261 | 262 | # camel_case_style - Define the camelCase style 263 | dotnet_naming_style.camel_case_style.capitalization = camel_case 264 | # pascal_case_style - Define the PascalCase style 265 | dotnet_naming_style.pascal_case_style.capitalization = pascal_case 266 | # first_upper_style - The first character must start with an upper-case character 267 | dotnet_naming_style.first_upper_style.capitalization = first_word_upper 268 | # prefix_interface_with_i_style - Interfaces must be PascalCase and the first character of an interface must be an 'I' 269 | dotnet_naming_style.prefix_interface_with_i_style.capitalization = pascal_case 270 | dotnet_naming_style.prefix_interface_with_i_style.required_prefix = I 271 | # prefix_type_parameters_with_t_style - Generic Type Parameters must be PascalCase and the first character must be a 'T' 272 | dotnet_naming_style.prefix_type_parameters_with_t_style.capitalization = pascal_case 273 | dotnet_naming_style.prefix_type_parameters_with_t_style.required_prefix = T 274 | # disallowed_style - Anything that has this style applied is marked as disallowed 275 | dotnet_naming_style.disallowed_style.capitalization = pascal_case 276 | dotnet_naming_style.disallowed_style.required_prefix = ____RULE_VIOLATION____ 277 | dotnet_naming_style.disallowed_style.required_suffix = ____RULE_VIOLATION____ 278 | # internal_error_style - This style should never occur... if it does, it indicates a bug in file or in the parser using the file 279 | dotnet_naming_style.internal_error_style.capitalization = pascal_case 280 | dotnet_naming_style.internal_error_style.required_prefix = ____INTERNAL_ERROR____ 281 | dotnet_naming_style.internal_error_style.required_suffix = ____INTERNAL_ERROR____ 282 | 283 | ########################################## 284 | # .NET Design Guideline Field Naming Rules 285 | # Naming rules for fields follow the .NET Framework design guidelines 286 | # https://docs.microsoft.com/dotnet/standard/design-guidelines/index 287 | ########################################## 288 | 289 | # All public/protected/protected_internal constant fields must be PascalCase 290 | # https://docs.microsoft.com/dotnet/standard/design-guidelines/field 291 | dotnet_naming_symbols.public_protected_constant_fields_group.applicable_accessibilities = public, protected, protected_internal 292 | dotnet_naming_symbols.public_protected_constant_fields_group.required_modifiers = const 293 | dotnet_naming_symbols.public_protected_constant_fields_group.applicable_kinds = field 294 | dotnet_naming_rule.public_protected_constant_fields_must_be_pascal_case_rule.symbols = public_protected_constant_fields_group 295 | dotnet_naming_rule.public_protected_constant_fields_must_be_pascal_case_rule.style = pascal_case_style 296 | dotnet_naming_rule.public_protected_constant_fields_must_be_pascal_case_rule.severity = warning 297 | 298 | # All public/protected/protected_internal static readonly fields must be PascalCase 299 | # https://docs.microsoft.com/dotnet/standard/design-guidelines/field 300 | dotnet_naming_symbols.public_protected_static_readonly_fields_group.applicable_accessibilities = public, protected, protected_internal 301 | dotnet_naming_symbols.public_protected_static_readonly_fields_group.required_modifiers = static, readonly 302 | dotnet_naming_symbols.public_protected_static_readonly_fields_group.applicable_kinds = field 303 | dotnet_naming_rule.public_protected_static_readonly_fields_must_be_pascal_case_rule.symbols = public_protected_static_readonly_fields_group 304 | dotnet_naming_rule.public_protected_static_readonly_fields_must_be_pascal_case_rule.style = pascal_case_style 305 | dotnet_naming_rule.public_protected_static_readonly_fields_must_be_pascal_case_rule.severity = warning 306 | 307 | # No other public/protected/protected_internal fields are allowed 308 | # https://docs.microsoft.com/dotnet/standard/design-guidelines/field 309 | dotnet_naming_symbols.other_public_protected_fields_group.applicable_accessibilities = public, protected, protected_internal 310 | dotnet_naming_symbols.other_public_protected_fields_group.applicable_kinds = field 311 | dotnet_naming_rule.other_public_protected_fields_disallowed_rule.symbols = other_public_protected_fields_group 312 | dotnet_naming_rule.other_public_protected_fields_disallowed_rule.style = disallowed_style 313 | dotnet_naming_rule.other_public_protected_fields_disallowed_rule.severity = error 314 | 315 | ########################################## 316 | # StyleCop Field Naming Rules 317 | # Naming rules for fields follow the StyleCop analyzers 318 | # This does not override any rules using disallowed_style above 319 | # https://github.com/DotNetAnalyzers/StyleCopAnalyzers 320 | ########################################## 321 | 322 | # All constant fields must be PascalCase 323 | # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1303.md 324 | dotnet_naming_symbols.stylecop_constant_fields_group.applicable_accessibilities = public, internal, protected_internal, protected, private_protected, private 325 | dotnet_naming_symbols.stylecop_constant_fields_group.required_modifiers = const 326 | dotnet_naming_symbols.stylecop_constant_fields_group.applicable_kinds = field 327 | dotnet_naming_rule.stylecop_constant_fields_must_be_pascal_case_rule.symbols = stylecop_constant_fields_group 328 | dotnet_naming_rule.stylecop_constant_fields_must_be_pascal_case_rule.style = pascal_case_style 329 | dotnet_naming_rule.stylecop_constant_fields_must_be_pascal_case_rule.severity = warning 330 | 331 | # All static readonly fields must be PascalCase 332 | # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1311.md 333 | dotnet_naming_symbols.stylecop_static_readonly_fields_group.applicable_accessibilities = public, internal, protected_internal, protected, private_protected, private 334 | dotnet_naming_symbols.stylecop_static_readonly_fields_group.required_modifiers = static, readonly 335 | dotnet_naming_symbols.stylecop_static_readonly_fields_group.applicable_kinds = field 336 | dotnet_naming_rule.stylecop_static_readonly_fields_must_be_pascal_case_rule.symbols = stylecop_static_readonly_fields_group 337 | dotnet_naming_rule.stylecop_static_readonly_fields_must_be_pascal_case_rule.style = pascal_case_style 338 | dotnet_naming_rule.stylecop_static_readonly_fields_must_be_pascal_case_rule.severity = warning 339 | 340 | # No non-private instance fields are allowed 341 | # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1401.md 342 | dotnet_naming_symbols.stylecop_fields_must_be_private_group.applicable_accessibilities = public, internal, protected_internal, protected, private_protected 343 | dotnet_naming_symbols.stylecop_fields_must_be_private_group.applicable_kinds = field 344 | dotnet_naming_rule.stylecop_instance_fields_must_be_private_rule.symbols = stylecop_fields_must_be_private_group 345 | dotnet_naming_rule.stylecop_instance_fields_must_be_private_rule.style = disallowed_style 346 | dotnet_naming_rule.stylecop_instance_fields_must_be_private_rule.severity = error 347 | 348 | # Private fields must be camelCase 349 | # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1306.md 350 | dotnet_naming_symbols.stylecop_private_fields_group.applicable_accessibilities = private 351 | dotnet_naming_symbols.stylecop_private_fields_group.applicable_kinds = field 352 | dotnet_naming_rule.stylecop_private_fields_must_be_camel_case_rule.symbols = stylecop_private_fields_group 353 | dotnet_naming_rule.stylecop_private_fields_must_be_camel_case_rule.style = camel_case_style 354 | dotnet_naming_rule.stylecop_private_fields_must_be_camel_case_rule.severity = warning 355 | 356 | # Local variables must be camelCase 357 | # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1312.md 358 | dotnet_naming_symbols.stylecop_local_fields_group.applicable_accessibilities = local 359 | dotnet_naming_symbols.stylecop_local_fields_group.applicable_kinds = local 360 | dotnet_naming_rule.stylecop_local_fields_must_be_camel_case_rule.symbols = stylecop_local_fields_group 361 | dotnet_naming_rule.stylecop_local_fields_must_be_camel_case_rule.style = camel_case_style 362 | dotnet_naming_rule.stylecop_local_fields_must_be_camel_case_rule.severity = silent 363 | 364 | # This rule should never fire. However, it's included for at least two purposes: 365 | # First, it helps to understand, reason about, and root-case certain types of issues, such as bugs in .editorconfig parsers. 366 | # Second, it helps to raise immediate awareness if a new field type is added (as occurred recently in C#). 367 | dotnet_naming_symbols.sanity_check_uncovered_field_case_group.applicable_accessibilities = * 368 | dotnet_naming_symbols.sanity_check_uncovered_field_case_group.applicable_kinds = field 369 | dotnet_naming_rule.sanity_check_uncovered_field_case_rule.symbols = sanity_check_uncovered_field_case_group 370 | dotnet_naming_rule.sanity_check_uncovered_field_case_rule.style = internal_error_style 371 | dotnet_naming_rule.sanity_check_uncovered_field_case_rule.severity = error 372 | 373 | 374 | ########################################## 375 | # Other Naming Rules 376 | ########################################## 377 | 378 | # All of the following must be PascalCase: 379 | # - Namespaces 380 | # https://docs.microsoft.com/dotnet/standard/design-guidelines/names-of-namespaces 381 | # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1300.md 382 | # - Classes and Enumerations 383 | # https://docs.microsoft.com/dotnet/standard/design-guidelines/names-of-classes-structs-and-interfaces 384 | # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1300.md 385 | # - Delegates 386 | # https://docs.microsoft.com/dotnet/standard/design-guidelines/names-of-classes-structs-and-interfaces#names-of-common-types 387 | # - Constructors, Properties, Events, Methods 388 | # https://docs.microsoft.com/dotnet/standard/design-guidelines/names-of-type-members 389 | dotnet_naming_symbols.element_group.applicable_kinds = namespace, class, enum, struct, delegate, event, method, property 390 | dotnet_naming_rule.element_rule.symbols = element_group 391 | dotnet_naming_rule.element_rule.style = pascal_case_style 392 | dotnet_naming_rule.element_rule.severity = warning 393 | 394 | # Interfaces use PascalCase and are prefixed with uppercase 'I' 395 | # https://docs.microsoft.com/dotnet/standard/design-guidelines/names-of-classes-structs-and-interfaces 396 | dotnet_naming_symbols.interface_group.applicable_kinds = interface 397 | dotnet_naming_rule.interface_rule.symbols = interface_group 398 | dotnet_naming_rule.interface_rule.style = prefix_interface_with_i_style 399 | dotnet_naming_rule.interface_rule.severity = warning 400 | 401 | # Generics Type Parameters use PascalCase and are prefixed with uppercase 'T' 402 | # https://docs.microsoft.com/dotnet/standard/design-guidelines/names-of-classes-structs-and-interfaces 403 | dotnet_naming_symbols.type_parameter_group.applicable_kinds = type_parameter 404 | dotnet_naming_rule.type_parameter_rule.symbols = type_parameter_group 405 | dotnet_naming_rule.type_parameter_rule.style = prefix_type_parameters_with_t_style 406 | dotnet_naming_rule.type_parameter_rule.severity = warning 407 | 408 | # Function parameters use camelCase 409 | # https://docs.microsoft.com/dotnet/standard/design-guidelines/naming-parameters 410 | dotnet_naming_symbols.parameters_group.applicable_kinds = parameter 411 | dotnet_naming_rule.parameters_rule.symbols = parameters_group 412 | dotnet_naming_rule.parameters_rule.style = camel_case_style 413 | dotnet_naming_rule.parameters_rule.severity = warning 414 | 415 | ########################################## 416 | # License 417 | ########################################## 418 | # The following applies as to the .editorconfig file ONLY, and is 419 | # included below for reference, per the requirements of the license 420 | # corresponding to this .editorconfig file. 421 | # See: https://github.com/RehanSaeed/EditorConfig 422 | # 423 | # MIT License 424 | # 425 | # Copyright (c) 2017-2019 Muhammad Rehan Saeed 426 | # Copyright (c) 2019 Henry Gabryjelski 427 | # 428 | # Permission is hereby granted, free of charge, to any 429 | # person obtaining a copy of this software and associated 430 | # documentation files (the "Software"), to deal in the 431 | # Software without restriction, including without limitation 432 | # the rights to use, copy, modify, merge, publish, distribute, 433 | # sublicense, and/or sell copies of the Software, and to permit 434 | # persons to whom the Software is furnished to do so, subject 435 | # to the following conditions: 436 | # 437 | # The above copyright notice and this permission notice shall be 438 | # included in all copies or substantial portions of the Software. 439 | # 440 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 441 | # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 442 | # OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 443 | # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 444 | # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 445 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 446 | # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 447 | # OTHER DEALINGS IN THE SOFTWARE. 448 | ########################################## 449 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################### 2 | # Git Line Endings # 3 | ############################### 4 | 5 | # Set default behavior to automatically normalize line endings. 6 | * text=auto 7 | 8 | # Force batch scripts to always use CRLF line endings so that if a repo is accessed 9 | # in Windows via a file share from Linux, the scripts will work. 10 | *.{cmd,[cC][mM][dD]} text eol=crlf 11 | *.{bat,[bB][aA][tT]} text eol=crlf 12 | 13 | # Force bash scripts to always use LF line endings so that if a repo is accessed 14 | # in Unix via a file share from Windows, the scripts will work. 15 | *.sh text eol=lf 16 | 17 | ############################### 18 | # Git Large File System (LFS) # 19 | ############################### 20 | 21 | # Archives 22 | *.7z filter=lfs diff=lfs merge=lfs -text 23 | *.br filter=lfs diff=lfs merge=lfs -text 24 | *.gz filter=lfs diff=lfs merge=lfs -text 25 | *.tar filter=lfs diff=lfs merge=lfs -text 26 | *.zip filter=lfs diff=lfs merge=lfs -text 27 | 28 | # Documents 29 | *.pdf filter=lfs diff=lfs merge=lfs -text 30 | 31 | # Images 32 | *.gif filter=lfs diff=lfs merge=lfs -text 33 | *.ico filter=lfs diff=lfs merge=lfs -text 34 | *.jpg filter=lfs diff=lfs merge=lfs -text 35 | *.png filter=lfs diff=lfs merge=lfs -text 36 | *.psd filter=lfs diff=lfs merge=lfs -text 37 | *.webp filter=lfs diff=lfs merge=lfs -text 38 | 39 | # Fonts 40 | *.woff2 filter=lfs diff=lfs merge=lfs -text 41 | 42 | # Other 43 | *.exe filter=lfs diff=lfs merge=lfs -text 44 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Aa][Rr][Mm]/ 27 | [Aa][Rr][Mm]64/ 28 | bld/ 29 | [Bb]in/ 30 | [Oo]bj/ 31 | [Ll]og/ 32 | [Ll]ogs/ 33 | 34 | # Visual Studio 2015/2017 cache/options directory 35 | .vs/ 36 | # Uncomment if you have tasks that create the project's static files in wwwroot 37 | #wwwroot/ 38 | 39 | # Visual Studio 2017 auto generated files 40 | Generated\ Files/ 41 | 42 | # MSTest test Results 43 | [Tt]est[Rr]esult*/ 44 | [Bb]uild[Ll]og.* 45 | 46 | # NUnit 47 | *.VisualState.xml 48 | TestResult.xml 49 | nunit-*.xml 50 | 51 | # Build Results of an ATL Project 52 | [Dd]ebugPS/ 53 | [Rr]eleasePS/ 54 | dlldata.c 55 | 56 | # Benchmark Results 57 | BenchmarkDotNet.Artifacts/ 58 | 59 | # .NET Core 60 | project.lock.json 61 | project.fragment.lock.json 62 | artifacts/ 63 | 64 | # StyleCop 65 | StyleCopReport.xml 66 | 67 | # Files built by Visual Studio 68 | *_i.c 69 | *_p.c 70 | *_h.h 71 | *.ilk 72 | *.meta 73 | *.obj 74 | *.iobj 75 | *.pch 76 | *.pdb 77 | *.ipdb 78 | *.pgc 79 | *.pgd 80 | *.rsp 81 | *.sbr 82 | *.tlb 83 | *.tli 84 | *.tlh 85 | *.tmp 86 | *.tmp_proj 87 | *_wpftmp.csproj 88 | *.log 89 | *.vspscc 90 | *.vssscc 91 | .builds 92 | *.pidb 93 | *.svclog 94 | *.scc 95 | 96 | # Chutzpah Test files 97 | _Chutzpah* 98 | 99 | # Visual C++ cache files 100 | ipch/ 101 | *.aps 102 | *.ncb 103 | *.opendb 104 | *.opensdf 105 | *.sdf 106 | *.cachefile 107 | *.VC.db 108 | *.VC.VC.opendb 109 | 110 | # Visual Studio profiler 111 | *.psess 112 | *.vsp 113 | *.vspx 114 | *.sap 115 | 116 | # Visual Studio Trace Files 117 | *.e2e 118 | 119 | # TFS 2012 Local Workspace 120 | $tf/ 121 | 122 | # Guidance Automation Toolkit 123 | *.gpState 124 | 125 | # ReSharper is a .NET coding add-in 126 | _ReSharper*/ 127 | *.[Rr]e[Ss]harper 128 | *.DotSettings.user 129 | 130 | # TeamCity is a build add-in 131 | _TeamCity* 132 | 133 | # DotCover is a Code Coverage Tool 134 | *.dotCover 135 | 136 | # AxoCover is a Code Coverage Tool 137 | .axoCover/* 138 | !.axoCover/settings.json 139 | 140 | # Visual Studio code coverage results 141 | *.coverage 142 | *.coveragexml 143 | 144 | # NCrunch 145 | _NCrunch_* 146 | .*crunch*.local.xml 147 | nCrunchTemp_* 148 | 149 | # MightyMoose 150 | *.mm.* 151 | AutoTest.Net/ 152 | 153 | # Web workbench (sass) 154 | .sass-cache/ 155 | 156 | # Installshield output folder 157 | [Ee]xpress/ 158 | 159 | # DocProject is a documentation generator add-in 160 | DocProject/buildhelp/ 161 | DocProject/Help/*.HxT 162 | DocProject/Help/*.HxC 163 | DocProject/Help/*.hhc 164 | DocProject/Help/*.hhk 165 | DocProject/Help/*.hhp 166 | DocProject/Help/Html2 167 | DocProject/Help/html 168 | 169 | # Click-Once directory 170 | publish/ 171 | 172 | # Publish Web Output 173 | *.[Pp]ublish.xml 174 | *.azurePubxml 175 | # Note: Comment the next line if you want to checkin your web deploy settings, 176 | # but database connection strings (with potential passwords) will be unencrypted 177 | *.pubxml 178 | *.publishproj 179 | 180 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 181 | # checkin your Azure Web App publish settings, but sensitive information contained 182 | # in these scripts will be unencrypted 183 | PublishScripts/ 184 | 185 | # NuGet Packages 186 | *.nupkg 187 | # NuGet Symbol Packages 188 | *.snupkg 189 | # The packages folder can be ignored because of Package Restore 190 | **/[Pp]ackages/* 191 | # except build/, which is used as an MSBuild target. 192 | !**/[Pp]ackages/build/ 193 | # Uncomment if necessary however generally it will be regenerated when needed 194 | #!**/[Pp]ackages/repositories.config 195 | # NuGet v3's project.json files produces more ignorable files 196 | *.nuget.props 197 | *.nuget.targets 198 | 199 | # Microsoft Azure Build Output 200 | csx/ 201 | *.build.csdef 202 | 203 | # Microsoft Azure Emulator 204 | ecf/ 205 | rcf/ 206 | 207 | # Windows Store app package directories and files 208 | AppPackages/ 209 | BundleArtifacts/ 210 | Package.StoreAssociation.xml 211 | _pkginfo.txt 212 | *.appx 213 | *.appxbundle 214 | *.appxupload 215 | 216 | # Visual Studio cache files 217 | # files ending in .cache can be ignored 218 | *.[Cc]ache 219 | # but keep track of directories ending in .cache 220 | !?*.[Cc]ache/ 221 | 222 | # Others 223 | ClientBin/ 224 | ~$* 225 | *~ 226 | *.dbmdl 227 | *.dbproj.schemaview 228 | *.jfm 229 | *.pfx 230 | *.publishsettings 231 | orleans.codegen.cs 232 | 233 | # Including strong name files can present a security risk 234 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 235 | #*.snk 236 | 237 | # Since there are multiple workflows, uncomment next line to ignore bower_components 238 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 239 | #bower_components/ 240 | 241 | # RIA/Silverlight projects 242 | Generated_Code/ 243 | 244 | # Backup & report files from converting an old project file 245 | # to a newer Visual Studio version. Backup files are not needed, 246 | # because we have git ;-) 247 | _UpgradeReport_Files/ 248 | Backup*/ 249 | UpgradeLog*.XML 250 | UpgradeLog*.htm 251 | ServiceFabricBackup/ 252 | *.rptproj.bak 253 | 254 | # SQL Server files 255 | *.mdf 256 | *.ldf 257 | *.ndf 258 | 259 | # Business Intelligence projects 260 | *.rdl.data 261 | *.bim.layout 262 | *.bim_*.settings 263 | *.rptproj.rsuser 264 | *- [Bb]ackup.rdl 265 | *- [Bb]ackup ([0-9]).rdl 266 | *- [Bb]ackup ([0-9][0-9]).rdl 267 | 268 | # Microsoft Fakes 269 | FakesAssemblies/ 270 | 271 | # GhostDoc plugin setting file 272 | *.GhostDoc.xml 273 | 274 | # Node.js Tools for Visual Studio 275 | .ntvs_analysis.dat 276 | node_modules/ 277 | 278 | # Visual Studio 6 build log 279 | *.plg 280 | 281 | # Visual Studio 6 workspace options file 282 | *.opt 283 | 284 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 285 | *.vbw 286 | 287 | # Visual Studio LightSwitch build output 288 | **/*.HTMLClient/GeneratedArtifacts 289 | **/*.DesktopClient/GeneratedArtifacts 290 | **/*.DesktopClient/ModelManifest.xml 291 | **/*.Server/GeneratedArtifacts 292 | **/*.Server/ModelManifest.xml 293 | _Pvt_Extensions 294 | 295 | # Paket dependency manager 296 | .paket/paket.exe 297 | paket-files/ 298 | 299 | # FAKE - F# Make 300 | .fake/ 301 | 302 | # CodeRush personal settings 303 | .cr/personal 304 | 305 | # Python Tools for Visual Studio (PTVS) 306 | __pycache__/ 307 | *.pyc 308 | 309 | # Cake - Uncomment if you are using it 310 | # tools/** 311 | # !tools/packages.config 312 | 313 | # Tabs Studio 314 | *.tss 315 | 316 | # Telerik's JustMock configuration file 317 | *.jmconfig 318 | 319 | # BizTalk build output 320 | *.btp.cs 321 | *.btm.cs 322 | *.odx.cs 323 | *.xsd.cs 324 | 325 | # OpenCover UI analysis results 326 | OpenCover/ 327 | 328 | # Azure Stream Analytics local run output 329 | ASALocalRun/ 330 | 331 | # MSBuild Binary and Structured Log 332 | *.binlog 333 | 334 | # NVidia Nsight GPU debugger configuration file 335 | *.nvuser 336 | 337 | # MFractors (Xamarin productivity tool) working folder 338 | .mfractor/ 339 | 340 | # Local History for Visual Studio 341 | .localhistory/ 342 | 343 | # BeatPulse healthcheck temp database 344 | healthchecksdb 345 | 346 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 347 | MigrationBackup/ 348 | 349 | # Ionide (cross platform F# VS Code tools) working folder 350 | .ionide/ 351 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Muhammad Rehan Saeed 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Windows 2 | -------------------------------------------------------------------------------- /Source/Git/.gitconfig: -------------------------------------------------------------------------------- 1 | [user] 2 | name = Muhammad Rehan Saeed 3 | email = rehansaeed@gmail.com 4 | [push] 5 | autoSetupRemote = true 6 | -------------------------------------------------------------------------------- /Source/Install.ps1: -------------------------------------------------------------------------------- 1 | # Environment Variables 2 | [System.Environment]::SetEnvironmentVariable("DOTNET_CLI_TELEMETRY_OPTOUT", "1", [EnvironmentVariableTarget]::Machine) 3 | 4 | # Windows Features 5 | # List features: Get-WindowsOptionalFeature -Online 6 | Enable-WindowsOptionalFeature -Online -FeatureName "Containers" -All 7 | Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Hyper-V" -All 8 | Enable-WindowsOptionalFeature -Online -FeatureName "VirtualMachinePlatform" -All 9 | 10 | # Fonts 11 | start "https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/CascadiaCode.zip" 12 | 13 | # Terminal 14 | winget install --id "9N0DX20HK701" # Windows Terminal 15 | winget install --id "9MZ1SNWT0N5D" # PowerShell 16 | winget install --id "XP8K0HKJFRXGCK" # Oh My Posh 17 | 18 | # IDE 19 | winget install --id "Microsoft.VisualStudioCode" --interactive --scope machine 20 | code --install-extension GitHub.copilot # GitHub Copilot 21 | code --install-extension ms-dotnettools.csharp # C# 22 | code --install-extension cake-build.cake-vscode # Cake 23 | code --install-extension ms-vsliveshare.vsliveshare # Live Share 24 | winget install --id "Microsoft.VisualStudio.2022.Enterprise" --interactive --scope machine 25 | 26 | # Git 27 | winget install --id "Git.Git" --interactive --scope machine 28 | winget install --id "GitHub.GitLFS" --interactive --scope machine 29 | mkdir C:\GitHub 30 | cd C:\GitHub 31 | git clone https://github.com/RehanSaeed/Windows.git 32 | cd Windows\Source 33 | Copy-Item -Path "./Git/.gitconfig" -Destination "C:\Users\${env:UserName}" 34 | winget install --id "GitHub.cli" --interactive --scope machine 35 | 36 | # Windows Terminal 37 | Copy-Item -Path "./Terminal/settings.json" -Destination "C:\Users\${env:UserName}\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState" 38 | 39 | # PowerShell Modules 40 | Install-Module -Name PowerShellGet -Force 41 | Install-Module -Name PSReadLine -Scope CurrentUser -Force -SkipPublisherCheck 42 | Install-Module -Name Terminal-Icons -Repository PSGallery 43 | Install-Module -Name DockerCompletion -Scope CurrentUser 44 | 45 | # PowerShell Profile 46 | $ProfileDirectory = Split-Path $PROFILE; 47 | Copy-Item -Path "./PowerShell/Microsoft.PowerShell_profile.ps1" -Destination $ProfileDirectory 48 | Copy-Item -Path "./PowerShell/oh-my-posh.json" -Destination $ProfileDirectory 49 | & $PROFILE; # Reload PowerShell Profile 50 | 51 | # Office 52 | winget install --id "9MSPC6MP8FM4" # Microsoft Whiteboard 53 | winget install --id "Notepad2mod.Notepad2mod" --interactive --scope machine 54 | 55 | # Utilities 56 | winget install --id "7zip.7zip" --interactive --scope machine 57 | winget install --id "XP89DCGQ3K6VLD" # Microsoft Power Toys 58 | winget install --id "9NJ3KMH29VGJ" # Enpass 59 | winget install --id "WinSCP.WinSCP" --interactive --scope machine 60 | winget install --id "9WZDNCRFJ3PV" # Windows Scan 61 | winget install --id "9P7KNL5RWT25" # Sysinternals Suite 62 | 63 | # Pheripherals 64 | winget install --id "Elgato.ControlCenter" --interactive --scope machine 65 | winget install --id "Elgato.StreamDeck" --interactive --scope machine 66 | 67 | # Browsers 68 | winget install --id "Google.Chrome" --interactive --scope machine 69 | winget install --id "Mozilla.Firefox" --interactive --scope machine 70 | 71 | # Communication 72 | winget install --id "XPDC2RH70K22MN" # Discord 73 | winget install --id "Microsoft.Teams" --interactive --scope machine 74 | winget install --id "OpenWhisperSystems.Signal" --interactive --scope machine 75 | winget install --id "9WZDNCRDK3WP" # Slack 76 | winget install --id "XP99J3KP4XZ4VV" # Zoom 77 | 78 | # Images 79 | winget install --id "9N3SQK8PDS8G" # Screen To Gif 80 | start "https://www.getpaint.net/download.html" # Paint.NET not yet available on winget 81 | 82 | # Media 83 | winget install --id "XPDM1ZW6815MQM" # VLC 84 | winget install --id "plex.plexmediaplayer" --interactive --scope machine 85 | winget install --id "OBSProject.OBSStudio" --interactive --scope machine 86 | winget install --id "dev47apps.DroidCam" --interactive --scope machine 87 | winget install --id "XSplit.VCam" --interactive --scope machine 88 | 89 | # Linux 90 | 91 | winget install --id "9P9TQF7MRM4R" # Windows Subsystem for Linux 92 | winget install --id "9PN20MSR04DW" # Ubuntu 22.04.1 LTS 93 | winget install --id "9P804CRF0395" # Alpine 94 | 95 | # Azure 96 | winget install --id "Microsoft.AzureCLI" --interactive 97 | winget install --id "Microsoft.AzureCosmosEmulator" 98 | winget install --id "Microsoft.AzureDataStudio" --interactive --scope machine 99 | winget install --id "Microsoft.AzureStorageEmulator" --interactive 100 | winget install --id "Microsoft.AzureStorageExplorer" --interactive 101 | 102 | # Tools 103 | winget install --id "Docker.DockerDesktop" --interactive --scope machine 104 | winget install --id "Microsoft.PowerBI" --interactive --scope machine 105 | winget install --id "Pulumi.Pulumi" --interactive 106 | winget install --id "Telerik.Fiddler.Everywhere" --interactive 107 | 108 | # Frameworks 109 | winget install --id "CoreyButler.NVMforWindows" --interactive --scope machine 110 | winget install --id "9NRWMJP3717K" # Python 3.11 111 | winget install --id "Microsoft.dotnet" --interactive --scope machine 112 | -------------------------------------------------------------------------------- /Source/PowerShell/Microsoft.PowerShell_profile.ps1: -------------------------------------------------------------------------------- 1 | $ProfileDirectory = Split-Path $PROFILE; 2 | oh-my-posh init pwsh --config "$ProfileDirectory\oh-my-posh.json" | Invoke-Expression; 3 | 4 | Import-Module Terminal-Icons 5 | Import-Module DockerCompletion 6 | Set-PSReadLineOption -PredictionViewStyle ListView 7 | 8 | # PowerShell parameter completion shim for the dotnet CLI 9 | Register-ArgumentCompleter -Native -CommandName dotnet -ScriptBlock { 10 | param($commandName, $wordToComplete, $cursorPosition) 11 | dotnet complete --position $cursorPosition "$wordToComplete" | ForEach-Object { 12 | [System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_) 13 | } 14 | } 15 | 16 | ## GitHub Copilot for CLI Aliases 17 | function ?? { 18 | $TmpFile = New-TemporaryFile 19 | github-copilot-cli what-the-shell ('use powershell to ' + $args) --shellout $TmpFile 20 | if ([System.IO.File]::Exists($TmpFile)) { 21 | $TmpFileContents = Get-Content $TmpFile 22 | if ($TmpFileContents -ne $nill) { 23 | Invoke-Expression $TmpFileContents 24 | Remove-Item $TmpFile 25 | } 26 | } 27 | } 28 | function git? { 29 | $TmpFile = New-TemporaryFile 30 | github-copilot-cli git-assist $args --shellout $TmpFile 31 | if ([System.IO.File]::Exists($TmpFile)) { 32 | $TmpFileContents = Get-Content $TmpFile 33 | if ($TmpFileContents -ne $nill) { 34 | Invoke-Expression $TmpFileContents 35 | Remove-Item $TmpFile 36 | } 37 | } 38 | } 39 | function gh? { 40 | $TmpFile = New-TemporaryFile 41 | github-copilot-cli gh-assist $args --shellout $TmpFile 42 | if ([System.IO.File]::Exists($TmpFile)) { 43 | $TmpFileContents = Get-Content $TmpFile 44 | if ($TmpFileContents -ne $nill) { 45 | Invoke-Expression $TmpFileContents 46 | Remove-Item $TmpFile 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /Source/PowerShell/oh-my-posh.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", 3 | "blocks": [ 4 | { 5 | "type": "prompt", 6 | "alignment": "left", 7 | "segments": [ 8 | { 9 | "type": "root", 10 | "style": "powerline", 11 | "powerline_symbol": "\uE0B0", 12 | "foreground": "#100e23", 13 | "background": "#ffe9aa" 14 | }, 15 | { 16 | "type": "session", 17 | "style": "powerline", 18 | "powerline_symbol": "\uE0B0", 19 | "foreground": "#100e23", 20 | "background": "#ffffff" 21 | }, 22 | { 23 | "type": "path", 24 | "style": "powerline", 25 | "powerline_symbol": "\uE0B0", 26 | "foreground": "#100e23", 27 | "background": "#91ddff", 28 | "properties": { 29 | "enable_hyperlink": true, 30 | "folder_icon": "\uF115", 31 | "folder_separator_icon": "\\", 32 | "style": "full" 33 | } 34 | }, 35 | { 36 | "type": "dotnet", 37 | "style": "powerline", 38 | "powerline_symbol": "\uE0B0", 39 | "foreground": "#ffffff", 40 | "background": "#67217a", 41 | "properties": { 42 | "display_version": true, 43 | "prefix": " \ue70c " 44 | } 45 | }, 46 | { 47 | "type": "go", 48 | "style": "powerline", 49 | "powerline_symbol": "\uE0B0", 50 | "foreground": "#ffffff", 51 | "background": "#7FD5EA", 52 | "properties": { 53 | "display_version": true, 54 | "prefix": " \uFCD1 " 55 | } 56 | }, 57 | { 58 | "type": "java", 59 | "style": "powerline", 60 | "powerline_symbol": "\uE0B0", 61 | "foreground": "#ffffff", 62 | "background": "#4063D8", 63 | "properties": { 64 | "display_version": true, 65 | "prefix": " \uE738 " 66 | } 67 | }, 68 | { 69 | "type": "node", 70 | "style": "powerline", 71 | "powerline_symbol": "\uE0B0", 72 | "foreground": "#ffffff", 73 | "background": "#6CA35E", 74 | "properties": { 75 | "display_version": true, 76 | "prefix": " \uE718 " 77 | } 78 | }, 79 | { 80 | "type": "python", 81 | "style": "powerline", 82 | "powerline_symbol": "\uE0B0", 83 | "foreground": "#100e23", 84 | "background": "#906cff", 85 | "properties": { 86 | "display_version": true, 87 | "prefix": " \uE235 " 88 | } 89 | }, 90 | { 91 | "type": "ruby", 92 | "style": "powerline", 93 | "powerline_symbol": "\uE0B0", 94 | "foreground": "#ffffff", 95 | "background": "#4063D8", 96 | "properties": { 97 | "display_version": true, 98 | "prefix": " \uE791 " 99 | } 100 | }, 101 | { 102 | "type": "rust", 103 | "style": "powerline", 104 | "powerline_symbol": "\uE0B0", 105 | "foreground": "#193549", 106 | "background": "#99908a", 107 | "properties": { 108 | "display_version": true, 109 | "prefix": " \uE7a8 " 110 | } 111 | }, 112 | // { 113 | // "type": "kubectl", 114 | // "style": "powerline", 115 | // "powerline_symbol": "\uE0B0", 116 | // "foreground": "#ffffff", 117 | // "background": "#316ce6", 118 | // "properties": { 119 | // "prefix": " \uFD31 ", 120 | // "template": "{{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}" 121 | // } 122 | // }, 123 | { 124 | "type": "git", 125 | "style": "powerline", 126 | "powerline_symbol": "\uE0B0", 127 | "foreground": "#193549", 128 | "background": "#95ffa4", 129 | "properties": { 130 | "display_status": true, 131 | "display_stash_count": true, 132 | "display_upstream_icon": true, 133 | "status_colors_enabled": true 134 | } 135 | }, 136 | { 137 | "type": "executiontime", 138 | "style": "powerline", 139 | "powerline_symbol": "\uE0B0", 140 | "foreground": "#ffffff", 141 | "background": "#8800dd", 142 | "properties": { 143 | "threshold": 500, 144 | "style": "austin", 145 | "prefix": " <#fefefe>\ufbab " 146 | } 147 | }, 148 | { 149 | "type": "exit", 150 | "style": "powerline", 151 | "powerline_symbol": "\uE0B0", 152 | "foreground": "#ffffff", 153 | "background": "#ff8080", 154 | "properties": { 155 | "always_enabled": false, 156 | "always_numeric": true, 157 | "display_exit_code": true, 158 | "prefix": " \uE20F " 159 | } 160 | } 161 | ] 162 | }, 163 | { 164 | "type": "prompt", 165 | "alignment": "left", 166 | "newline": true, 167 | "segments": [ 168 | { 169 | "type": "text", 170 | "style": "plain", 171 | "foreground": "#007ACC", 172 | "properties": { 173 | "prefix": "", 174 | "text": "\u276F" 175 | } 176 | } 177 | ] 178 | } 179 | ], 180 | "console_title": true, 181 | "console_title_style": "folder", 182 | "final_space": false 183 | } 184 | -------------------------------------------------------------------------------- /Source/Terminal/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "$help": "https://aka.ms/terminal-documentation", 3 | "$schema": "https://aka.ms/terminal-profiles-schema", 4 | "actions": [ 5 | { 6 | "command": { 7 | "action": "copy", 8 | "singleLine": false 9 | }, 10 | "keys": "ctrl+c" 11 | }, 12 | { 13 | "command": { 14 | "action": "commandPalette" 15 | }, 16 | "keys": "ctrl+shift+p" 17 | }, 18 | { 19 | "command": "paste", 20 | "keys": "ctrl+v" 21 | }, 22 | { 23 | "command": { 24 | "action": "newTab" 25 | }, 26 | "keys": "ctrl+t" 27 | }, 28 | { 29 | "command": "find", 30 | "keys": "ctrl+f" 31 | }, 32 | { 33 | "command": { 34 | "action": "splitPane", 35 | "split": "auto", 36 | "splitMode": "duplicate" 37 | }, 38 | "keys": "alt+shift+d" 39 | }, 40 | { 41 | "command": { 42 | "action": "closeTab" 43 | }, 44 | "keys": "ctrl+w" 45 | }, 46 | { 47 | "command": { 48 | "action": "splitPane" 49 | }, 50 | "keys": "ctrl+shift+t" 51 | }, 52 | { 53 | "command": "closePane", 54 | "keys": "ctrl+shift+w" 55 | } 56 | ], 57 | "copyFormatting": "none", 58 | "copyOnSelect": false, 59 | "defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", 60 | "firstWindowPreference": "persistedWindowLayout", 61 | "profiles": { 62 | "defaults": { 63 | "colorScheme": "Campbell", 64 | "font": { 65 | "face": "CaskaydiaCove Nerd Font" 66 | }, 67 | "startingDirectory": "C:\\GitHub" 68 | }, 69 | "list": [ 70 | { 71 | "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", 72 | "hidden": false, 73 | "name": "PowerShell", 74 | "source": "Windows.Terminal.PowershellCore" 75 | }, 76 | { 77 | "commandline": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", 78 | "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", 79 | "hidden": false, 80 | "name": "Windows PowerShell" 81 | }, 82 | { 83 | "commandline": "%SystemRoot%\\System32\\cmd.exe", 84 | "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", 85 | "hidden": false, 86 | "name": "Command Prompt" 87 | }, 88 | { 89 | "guid": "{1777cdf0-b2c4-5a63-a204-eb60f349ea7c}", 90 | "hidden": false, 91 | "name": "Alpine", 92 | "source": "Windows.Terminal.Wsl" 93 | }, 94 | { 95 | "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}", 96 | "hidden": false, 97 | "name": "Ubuntu", 98 | "source": "Windows.Terminal.Wsl" 99 | }, 100 | { 101 | "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", 102 | "hidden": false, 103 | "name": "Azure Cloud Shell", 104 | "source": "Windows.Terminal.Azure" 105 | }, 106 | { 107 | "guid": "{c2d611c8-baaa-5116-960d-1d7669dcabb3}", 108 | "hidden": false, 109 | "name": "Developer Command Prompt for VS 2022", 110 | "source": "Windows.Terminal.VisualStudio" 111 | }, 112 | { 113 | "guid": "{de87c8a2-5c72-511a-ae3e-04eb1c3728de}", 114 | "hidden": false, 115 | "name": "Developer PowerShell for VS 2022", 116 | "source": "Windows.Terminal.VisualStudio" 117 | } 118 | ] 119 | }, 120 | "schemes": [ 121 | { 122 | "background": "#0C0C0C", 123 | "black": "#0C0C0C", 124 | "blue": "#0037DA", 125 | "brightBlack": "#767676", 126 | "brightBlue": "#3B78FF", 127 | "brightCyan": "#61D6D6", 128 | "brightGreen": "#16C60C", 129 | "brightPurple": "#B4009E", 130 | "brightRed": "#E74856", 131 | "brightWhite": "#F2F2F2", 132 | "brightYellow": "#F9F1A5", 133 | "cursorColor": "#FFFFFF", 134 | "cyan": "#3A96DD", 135 | "foreground": "#CCCCCC", 136 | "green": "#13A10E", 137 | "name": "Campbell", 138 | "purple": "#881798", 139 | "red": "#C50F1F", 140 | "selectionBackground": "#FFFFFF", 141 | "white": "#CCCCCC", 142 | "yellow": "#C19C00" 143 | }, 144 | { 145 | "background": "#012456", 146 | "black": "#0C0C0C", 147 | "blue": "#0037DA", 148 | "brightBlack": "#767676", 149 | "brightBlue": "#3B78FF", 150 | "brightCyan": "#61D6D6", 151 | "brightGreen": "#16C60C", 152 | "brightPurple": "#B4009E", 153 | "brightRed": "#E74856", 154 | "brightWhite": "#F2F2F2", 155 | "brightYellow": "#F9F1A5", 156 | "cursorColor": "#FFFFFF", 157 | "cyan": "#3A96DD", 158 | "foreground": "#CCCCCC", 159 | "green": "#13A10E", 160 | "name": "Campbell Powershell", 161 | "purple": "#881798", 162 | "red": "#C50F1F", 163 | "selectionBackground": "#FFFFFF", 164 | "white": "#CCCCCC", 165 | "yellow": "#C19C00" 166 | }, 167 | { 168 | "background": "#282C34", 169 | "black": "#282C34", 170 | "blue": "#61AFEF", 171 | "brightBlack": "#5A6374", 172 | "brightBlue": "#61AFEF", 173 | "brightCyan": "#56B6C2", 174 | "brightGreen": "#98C379", 175 | "brightPurple": "#C678DD", 176 | "brightRed": "#E06C75", 177 | "brightWhite": "#DCDFE4", 178 | "brightYellow": "#E5C07B", 179 | "cursorColor": "#FFFFFF", 180 | "cyan": "#56B6C2", 181 | "foreground": "#DCDFE4", 182 | "green": "#98C379", 183 | "name": "One Half Dark", 184 | "purple": "#C678DD", 185 | "red": "#E06C75", 186 | "selectionBackground": "#FFFFFF", 187 | "white": "#DCDFE4", 188 | "yellow": "#E5C07B" 189 | }, 190 | { 191 | "background": "#FAFAFA", 192 | "black": "#383A42", 193 | "blue": "#0184BC", 194 | "brightBlack": "#4F525D", 195 | "brightBlue": "#61AFEF", 196 | "brightCyan": "#56B5C1", 197 | "brightGreen": "#98C379", 198 | "brightPurple": "#C577DD", 199 | "brightRed": "#DF6C75", 200 | "brightWhite": "#FFFFFF", 201 | "brightYellow": "#E4C07A", 202 | "cursorColor": "#4F525D", 203 | "cyan": "#0997B3", 204 | "foreground": "#383A42", 205 | "green": "#50A14F", 206 | "name": "One Half Light", 207 | "purple": "#A626A4", 208 | "red": "#E45649", 209 | "selectionBackground": "#FFFFFF", 210 | "white": "#FAFAFA", 211 | "yellow": "#C18301" 212 | }, 213 | { 214 | "background": "#002B36", 215 | "black": "#002B36", 216 | "blue": "#268BD2", 217 | "brightBlack": "#073642", 218 | "brightBlue": "#839496", 219 | "brightCyan": "#93A1A1", 220 | "brightGreen": "#586E75", 221 | "brightPurple": "#6C71C4", 222 | "brightRed": "#CB4B16", 223 | "brightWhite": "#FDF6E3", 224 | "brightYellow": "#657B83", 225 | "cursorColor": "#FFFFFF", 226 | "cyan": "#2AA198", 227 | "foreground": "#839496", 228 | "green": "#859900", 229 | "name": "Solarized Dark", 230 | "purple": "#D33682", 231 | "red": "#DC322F", 232 | "selectionBackground": "#FFFFFF", 233 | "white": "#EEE8D5", 234 | "yellow": "#B58900" 235 | }, 236 | { 237 | "background": "#FDF6E3", 238 | "black": "#002B36", 239 | "blue": "#268BD2", 240 | "brightBlack": "#073642", 241 | "brightBlue": "#839496", 242 | "brightCyan": "#93A1A1", 243 | "brightGreen": "#586E75", 244 | "brightPurple": "#6C71C4", 245 | "brightRed": "#CB4B16", 246 | "brightWhite": "#FDF6E3", 247 | "brightYellow": "#657B83", 248 | "cursorColor": "#002B36", 249 | "cyan": "#2AA198", 250 | "foreground": "#657B83", 251 | "green": "#859900", 252 | "name": "Solarized Light", 253 | "purple": "#D33682", 254 | "red": "#DC322F", 255 | "selectionBackground": "#FFFFFF", 256 | "white": "#EEE8D5", 257 | "yellow": "#B58900" 258 | }, 259 | { 260 | "background": "#000000", 261 | "black": "#000000", 262 | "blue": "#3465A4", 263 | "brightBlack": "#555753", 264 | "brightBlue": "#729FCF", 265 | "brightCyan": "#34E2E2", 266 | "brightGreen": "#8AE234", 267 | "brightPurple": "#AD7FA8", 268 | "brightRed": "#EF2929", 269 | "brightWhite": "#EEEEEC", 270 | "brightYellow": "#FCE94F", 271 | "cursorColor": "#FFFFFF", 272 | "cyan": "#06989A", 273 | "foreground": "#D3D7CF", 274 | "green": "#4E9A06", 275 | "name": "Tango Dark", 276 | "purple": "#75507B", 277 | "red": "#CC0000", 278 | "selectionBackground": "#FFFFFF", 279 | "white": "#D3D7CF", 280 | "yellow": "#C4A000" 281 | }, 282 | { 283 | "background": "#FFFFFF", 284 | "black": "#000000", 285 | "blue": "#3465A4", 286 | "brightBlack": "#555753", 287 | "brightBlue": "#729FCF", 288 | "brightCyan": "#34E2E2", 289 | "brightGreen": "#8AE234", 290 | "brightPurple": "#AD7FA8", 291 | "brightRed": "#EF2929", 292 | "brightWhite": "#EEEEEC", 293 | "brightYellow": "#FCE94F", 294 | "cursorColor": "#000000", 295 | "cyan": "#06989A", 296 | "foreground": "#555753", 297 | "green": "#4E9A06", 298 | "name": "Tango Light", 299 | "purple": "#75507B", 300 | "red": "#CC0000", 301 | "selectionBackground": "#FFFFFF", 302 | "white": "#D3D7CF", 303 | "yellow": "#C4A000" 304 | }, 305 | { 306 | "background": "#000000", 307 | "black": "#000000", 308 | "blue": "#000080", 309 | "brightBlack": "#808080", 310 | "brightBlue": "#0000FF", 311 | "brightCyan": "#00FFFF", 312 | "brightGreen": "#00FF00", 313 | "brightPurple": "#FF00FF", 314 | "brightRed": "#FF0000", 315 | "brightWhite": "#FFFFFF", 316 | "brightYellow": "#FFFF00", 317 | "cursorColor": "#FFFFFF", 318 | "cyan": "#008080", 319 | "foreground": "#C0C0C0", 320 | "green": "#008000", 321 | "name": "Vintage", 322 | "purple": "#800080", 323 | "red": "#800000", 324 | "selectionBackground": "#FFFFFF", 325 | "white": "#C0C0C0", 326 | "yellow": "#808000" 327 | } 328 | ], 329 | "showTabsInTitlebar": true, 330 | "useAcrylicInTabRow": true 331 | } 332 | --------------------------------------------------------------------------------