parent
17afc64746
commit
368d5b2bd1
@ -0,0 +1,9 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
@ -0,0 +1,22 @@
|
||||
// cSpell Settings
|
||||
{
|
||||
// Version of the setting file. Always 0.1
|
||||
"version": "0.2",
|
||||
// language - current active spelling language
|
||||
"language": "en,de,de-DE",
|
||||
// words - list of words to be always considered correct
|
||||
"words": [],
|
||||
// flagWords - list of words to be always considered incorrect
|
||||
// This is useful for offensive words and common spelling errors.
|
||||
// For example "hte" should be "the"
|
||||
"flagWords": [],
|
||||
"dictionaryDefinitions": [
|
||||
{
|
||||
"name": "default",
|
||||
"path": "./dictionaries/default.txt"
|
||||
}
|
||||
],
|
||||
"dictionaries": [
|
||||
"default"
|
||||
]
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
{
|
||||
"files.encoding": "utf8",
|
||||
"files.eol": "auto",
|
||||
"files.trimTrailingWhitespace": true,
|
||||
"files.insertFinalNewline": true,
|
||||
"editor.renderWhitespace": "boundary",
|
||||
"editor.formatOnSave": true,
|
||||
"editor.formatOnType": true,
|
||||
"editor.rulers": [
|
||||
116
|
||||
],
|
||||
"cSpell.enabled": true,
|
||||
"cSpell.enabledLanguageIds": [
|
||||
"c",
|
||||
"cpp",
|
||||
"csharp",
|
||||
"go",
|
||||
"javascript",
|
||||
"javascriptreact",
|
||||
"json",
|
||||
"latex",
|
||||
"markdown",
|
||||
"php",
|
||||
"plaintext",
|
||||
"powershell",
|
||||
"python",
|
||||
"text",
|
||||
"typescript",
|
||||
"typescriptreact",
|
||||
"yaml",
|
||||
"yml"
|
||||
],
|
||||
"cSpell.language": "en,de,de-DE"
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
# dotfiles
|
||||
my personal dotfile collection
|
||||
my personal dotfiles collection
|
||||
|
@ -0,0 +1,39 @@
|
||||
[user]
|
||||
name = OCram85
|
||||
email = marco.blessing@googlemail.com
|
||||
[core]
|
||||
# editor = \"C:/Program Files/Notepad++/notepad++.exe\" -multiInst -nosession
|
||||
# editor = nano
|
||||
editor = 'C:\\Program Files\\Microsoft VS Code\\Code.exe' --wait --new-window
|
||||
autocrlf = False
|
||||
|
||||
[i18n]
|
||||
filesEncoding = utf-8
|
||||
|
||||
[push]
|
||||
default = simple
|
||||
|
||||
[alias]
|
||||
# simplified logging views
|
||||
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
|
||||
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
|
||||
|
||||
# fetch all remote changes
|
||||
cfetch = fetch --prune --tags
|
||||
|
||||
## Phabricator inspired workflow
|
||||
|
||||
# Create new feature branch
|
||||
feature = "!f(){ b=$1; git checkout master; git pull; git checkout -b "$b" master; };f"
|
||||
|
||||
# adds a new wip commit
|
||||
wip = !"git add -A; git commit -m '[WIP]'"
|
||||
|
||||
# used to squish changes in the latest commit. Should be used after a wip commit
|
||||
squish = !"git add -A; git commit --no-edit --amend"
|
||||
|
||||
# Push to origin / dev branch
|
||||
pod = !"git push origin dev"
|
||||
|
||||
# Push to custom remote branch
|
||||
poc = "!f(){ b=$1; git push origin "$b";};f"
|
@ -0,0 +1,32 @@
|
||||
# load chocoal
|
||||
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
|
||||
if (Test-Path($ChocolateyProfile)) {
|
||||
Import-Module "$ChocolateyProfile"
|
||||
}
|
||||
|
||||
# Use these profile items not in vscode
|
||||
if ($env:TERM_PROGRAM -ne 'vscode') {
|
||||
Import-Module -Name MyHelper -WarningAction SilentlyContinue
|
||||
# ...
|
||||
# ...
|
||||
}
|
||||
|
||||
# redirect git stderr output. This is needed use git commands in powershell.
|
||||
# Some commands do there outut into stderr instead of stdout. / git clone.
|
||||
$env:GIT_REDIRECT_STDERR = '2>&1'
|
||||
|
||||
# Config Electron npm package to use the proxy
|
||||
$Env:ELECTRON_GET_USE_PROXY = $true
|
||||
# proxy settings for http/https agent
|
||||
$Env:GLOBAL_AGENT_HTTPS_PROXY = 'https://a.b.c.d:3128/'
|
||||
|
||||
Import-Module -Name 'PSReadline'
|
||||
|
||||
# import git auto completion
|
||||
Import-Module -Name 'posh-git'
|
||||
|
||||
# import starship prompt
|
||||
Invoke-Expression (&starship init powershell)
|
||||
|
||||
# import auto completion for tea (gitea client)
|
||||
& C:\Users\wkiv924\AppData\Local\tea\tea.ps1
|
@ -0,0 +1,13 @@
|
||||
# PowerShell Profile
|
||||
|
||||
This is my Powershell user profile for Pwsh 5.1+.
|
||||
|
||||
I try to keep this as small as possible and use it to load my must have tools.
|
||||
|
||||
- [Chocolatey]() init
|
||||
- run additional helpers on each terminal session except the vscode terminal
|
||||
- fix some git issues
|
||||
- set proxy config for node/ electron installer
|
||||
- Load needed modules like PSReadline and posh-git
|
||||
- Load starship prompt
|
||||
|
@ -0,0 +1,3 @@
|
||||
# .ssh
|
||||
|
||||
Client config to keep the current sessions active. Avoids ending sessions on inactivity.
|
@ -0,0 +1,3 @@
|
||||
HOST *
|
||||
ServerAliveInterval 60
|
||||
ServerAliveCountMax 2
|
@ -0,0 +1,9 @@
|
||||
# Starship Prompt config
|
||||
|
||||
This is my personal config for the [starship](https://starship.rs/) prompt.
|
||||
It requires the FiraCode Font from [NerdFonts](https://www.nerdfonts.com/)
|
||||
|
||||
I'm using this config in:
|
||||
|
||||
- PowerShell with the [Windows-Terminal](https://github.com/microsoft/terminal)
|
||||
- any Bash shell
|
Loading…
Reference in new issue