Compare commits
7 Commits
875baf1087
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 64048316af | |||
| 9c05dd910b | |||
| c387b62b5b | |||
| c839333c05 | |||
| 95304660b6 | |||
| 74df7982e6 | |||
| 14da4b631e |
@@ -1,3 +1,6 @@
|
|||||||
|
# Setup
|
||||||
|
$PSProfileLoadTimePreference = 'Silent'
|
||||||
|
|
||||||
### Shell completion
|
### Shell completion
|
||||||
|
|
||||||
# Scoop completion
|
# Scoop completion
|
||||||
@@ -27,6 +30,10 @@ if (Get-Command packwiz -ErrorAction SilentlyContinue) {
|
|||||||
Invoke-Expression ((&packwiz completion powershell | Out-String))
|
Invoke-Expression ((&packwiz completion powershell | Out-String))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Get-Command cheat -ErrorAction SilentlyContinue) {
|
||||||
|
Invoke-Expression ((&cheat --completion powershell | Out-String))
|
||||||
|
}
|
||||||
|
|
||||||
### Aliases
|
### Aliases
|
||||||
|
|
||||||
# Unix like pwd
|
# Unix like pwd
|
||||||
@@ -136,3 +143,8 @@ Function update {
|
|||||||
if ((Get-Location) -like "*scoop\apps\windows-terminal*") {
|
if ((Get-Location) -like "*scoop\apps\windows-terminal*") {
|
||||||
Set-Location ~
|
Set-Location ~
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Use starship prompt if installed
|
||||||
|
if (Get-Command starship -ErrorAction SilentlyContinue) {
|
||||||
|
Invoke-Expression (&starship init powershell)
|
||||||
|
}
|
||||||
|
|||||||
@@ -0,0 +1,33 @@
|
|||||||
|
# Get editor completions based on the config schema
|
||||||
|
"$schema" = 'https://starship.rs/config-schema.json'
|
||||||
|
|
||||||
|
add_newline = false
|
||||||
|
username.show_always = true
|
||||||
|
username.format = "[$user]($style)"
|
||||||
|
username.style_user = "white"
|
||||||
|
hostname.ssh_only = false
|
||||||
|
hostname.format = "[$hostname$ssh_symbol]($style)"
|
||||||
|
hostname.style = "white"
|
||||||
|
hostname.ssh_symbol = " 🌐"
|
||||||
|
directory.truncate_to_repo = false
|
||||||
|
directory.format = "[$path]($style)[$read_only]($read_only_style)"
|
||||||
|
directory.style = "white"
|
||||||
|
character.success_symbol = "[\\$](green)"
|
||||||
|
character.error_symbol = "[\\$](red)"
|
||||||
|
time.disabled = false
|
||||||
|
time.format = "[$time]($style)"
|
||||||
|
time.style = "white"
|
||||||
|
git_branch.always_show_remote = true
|
||||||
|
git_branch.format = "[$symbol](bright-black)[$branch]($style)"
|
||||||
|
git_branch.style = "white"
|
||||||
|
git_commit.only_detached = false
|
||||||
|
git_commit.tag_disabled = false
|
||||||
|
git_commit.format = "[$hash$tag]($style)"
|
||||||
|
git_commit.style = "bright-black"
|
||||||
|
|
||||||
|
|
||||||
|
# A minimal left prompt
|
||||||
|
format = "[\\[](bright-black)$username[@](bright-black)$hostname $directory[\\]](bright-black)$character"
|
||||||
|
|
||||||
|
# move the rest of the prompt to the right
|
||||||
|
right_format = """$git_branch $git_commit $time"""
|
||||||
@@ -18,3 +18,5 @@
|
|||||||
helper = wincred
|
helper = wincred
|
||||||
helper = cache
|
helper = cache
|
||||||
|
|
||||||
|
[safe]
|
||||||
|
directory = *
|
||||||
|
|||||||
@@ -42,19 +42,19 @@ cheatpaths:
|
|||||||
# Community cheatsheets (https://github.com/cheat/cheatsheets):
|
# Community cheatsheets (https://github.com/cheat/cheatsheets):
|
||||||
# To install: git clone https://github.com/cheat/cheatsheets C:\Users\Isaac\scoop\apps\cheat\current\cheatsheets\community
|
# To install: git clone https://github.com/cheat/cheatsheets C:\Users\Isaac\scoop\apps\cheat\current\cheatsheets\community
|
||||||
- name: community
|
- name: community
|
||||||
path: ~\AppData\Roaming\cheat\cheatsheets\community
|
path: ~\scoop\persist\cheat\cheatsheets\community
|
||||||
tags: [ community ]
|
tags: [ community ]
|
||||||
readonly: true
|
readonly: true
|
||||||
|
|
||||||
# Cheatsheets that are tagged "work" are stored here by default:
|
# Cheatsheets that are tagged "work" are stored here by default:
|
||||||
- name: work
|
- name: work
|
||||||
path: ~\AppData\Roaming\cheat\cheatsheets\work
|
path: ~\scoop\persist\cheat\cheatsheets\work
|
||||||
tags: [ work ]
|
tags: [ work ]
|
||||||
readonly: false
|
readonly: false
|
||||||
|
|
||||||
# Cheatsheets that are tagged "personal" are stored here by default:
|
# Cheatsheets that are tagged "personal" are stored here by default:
|
||||||
- name: personal
|
- name: personal
|
||||||
path: ~\AppData\Roaming\cheat\cheatsheets\personal
|
path: ~\scoop\persist\cheat\cheatsheets\personal
|
||||||
tags: [ personal ]
|
tags: [ personal ]
|
||||||
readonly: false
|
readonly: false
|
||||||
|
|
||||||
Reference in New Issue
Block a user