adds inital content

This commit is contained in:
OCram85 2022-06-15 13:08:18 +02:00
parent 17afc64746
commit 368d5b2bd1
13 changed files with 251 additions and 1 deletions

9
.editconfig Normal file
View File

@ -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
.gitignore vendored Normal file
View File

22
.vscode/cSpell.json vendored Normal file
View File

@ -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
.vscode/dictionaries/default.txt vendored Normal file
View File

34
.vscode/settings.json vendored Normal file
View File

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

View File

@ -1,2 +1,2 @@
# dotfiles # dotfiles
my personal dotfile collection my personal dotfiles collection

39
git/.gitconfig Normal file
View File

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

View File

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

13
powershell/README.md Normal file
View File

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

3
ssh/README.md Normal file
View File

@ -0,0 +1,3 @@
# .ssh
Client config to keep the current sessions active. Avoids ending sessions on inactivity.

3
ssh/config Normal file
View File

@ -0,0 +1,3 @@
HOST *
ServerAliveInterval 60
ServerAliveCountMax 2

9
startship/README.md Normal file
View File

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

86
startship/starship.toml Normal file
View File

@ -0,0 +1,86 @@
[aws]
symbol = " "
[buf]
symbol = " "
[conda]
symbol = " "
[dart]
symbol = " "
[directory]
read_only = " "
[docker_context]
symbol = " "
[elixir]
symbol = " "
[elm]
symbol = " "
# [git_branch]
# symbol = " "
[golang]
symbol = " "
[haskell]
symbol = " "
[hg_branch]
symbol = " "
[java]
symbol = " "
[julia]
symbol = " "
[memory_usage]
symbol = " "
[nim]
symbol = " "
[nix_shell]
symbol = " "
[nodejs]
symbol = " "
[package]
symbol = " "
[rust]
symbol = " "
# Custom Prompt
[git_branch]
format = " [$symbol$branch]($style) "
symbol = "🍣 "
style = "bold yellow"
[git_commit]
commit_hash_length = 8
style = "bold white"
[git_state]
format = '[\($state( $progress_current of $progress_total)\)]($style) '
[git_status]
conflicted = "⚔️ "
ahead = "🏎️💨 ×${count}"
behind = "🐢 ×${count}"
diverged = "🔱 🏎️ 💨 ×${ahead_count} 🐢 ×${behind_count}"
untracked = "🛤️ ×${count}|"
stashed = "📦 "
modified = "📝 ×${count}|"
staged = "🗃️ ×${count}|"
renamed = "📛 ×${count}|"
deleted = "🗑️ ×${count}|"
style = "bright-white"
format = "$all_status$ahead_behind"