diff --git a/README.md b/README.md index 319c236..19e20d5 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,27 @@ A repository for my Windows-based configuration files. +## Configurations + +:diamond_shape_with_a_dot_inside: PowerShell and Git Bash for Windows + đŸ—’ī¸ Visual Studio Code -đŸ–Ĩī¸ Windows Terminal \ No newline at end of file +đŸ–Ĩī¸ Windows Terminal + +âŒ¨ī¸ Oh My Posh + +## Prerequisites + +📝 [Git for Windows](https://git-scm.com/install/windows) + +📝 [PowerShell 7](https://github.com/PowerShell/PowerShell/releases) + +📝 [Caskaydia Mono NerdFont](https://github.com/ryanoasis/nerd-fonts/releases/download/v3.4.0/CascadiaMono.zip) + +📝 [Oh My Posh](https://ohmyposh.dev/docs/installation/windows) +**NOTE:** Typically it is sufficient to run `winget install JanDeDobbeleer.OhMyPosh --source winget` + +## Notes + +â„šī¸ My OMP theme is based on the `rudolfs-dark` theme covered in Jan DeDobbeleer's oh-my-posh repository which is under the MIT license. diff --git a/bash/.bash_profile b/bash/.bash_profile new file mode 100644 index 0000000..2b291a6 --- /dev/null +++ b/bash/.bash_profile @@ -0,0 +1,2 @@ +test -f ~/.profile && . ~/.profile +test -f ~/.bashrc && . ~/.bashrc \ No newline at end of file diff --git a/bash/.bashrc b/bash/.bashrc new file mode 100644 index 0000000..e5caf09 --- /dev/null +++ b/bash/.bashrc @@ -0,0 +1,8 @@ +# Start Oh My Posh +if command -v oh-my-posh &> /dev/null; then + eval "$(oh-my-posh init bash --config ~/zoness.omp.json)" +fi + +# Aliases +alias gs="git status" +alias ll="ls -lah" \ No newline at end of file diff --git a/ohmyposh/zoness.omp.json b/ohmyposh/zoness.omp.json new file mode 100644 index 0000000..6eb2d2d --- /dev/null +++ b/ohmyposh/zoness.omp.json @@ -0,0 +1,75 @@ +{ + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", + "blocks": [ + { + "alignment": "left", + "segments": [ + { + "background": "#BF231D", + "foreground": "#ffffff", + "style": "plain", + "template": " \uf0e7 ", + "type": "root" + }, + { + "background": "#0A703E", + "foreground": "#ffffff", + "style": "plain", + "template": " {{ .Icon }} ", + "type": "os" + }, + { + "background": "#0A703E", + "foreground": "#ffffff", + "style": "plain", + "template": "{{ .UserName }}@{{ .HostName }} ", + "type": "session" + }, + { + "background": "#256C9D", + "foreground": "#ffffff", + "options": { + "folder_icon": "\uf115", + "folder_separator_icon": " \ue0b1 ", + "max_depth": 2, + "style": "agnoster_short" + }, + "style": "plain", + "template": " {{ .Path }} ", + "type": "path" + }, + { + "background": "#256C9D", + "foreground": "#ffffff", + "options": { + "branch_template": "{{ trunc 30 .Branch }}", + "fetch_status": true, + "fetch_upstream_icon": true + }, + "style": "plain", + "template": "[ {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} ]", + "type": "git" + }, + { + "background": "#256C9D", + "foreground": "#ffffff", + "powerline_symbol": "\ue0b0", + "style": "plain", + "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ", + "options": { + "text": "\ue0b0" + }, + "type": "python" + }, + { + "foreground": "#256C9D", + "style": "plain", + "template": "\ue0b0 ", + "type": "text" + } + ], + "type": "prompt" + } + ], + "version": 4 +} \ No newline at end of file