Last active
January 21, 2022 07:14
-
-
Save daenuprobst/8fea847ab8bcf674fa555770e72fbea2 to your computer and use it in GitHub Desktop.
Config files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Invoke-Expression (&starship init powershell) | |
# Install latest version of PSReadLine in case of errors: | |
# Install-Module PSReadLine -AllowPrerelease -Force | |
Import-Module PSReadLine | |
Set-PSReadLineOption -PredictionSource History | |
Set-PSReadLineOption -PredictionViewStyle InlineView | |
Set-PSReadLineOption -EditMode Windows | |
# Install scoop package manager: | |
# iwr -useb get.scoop.sh | iex | |
# Install better cd | |
# scoop install zoxide | |
# scoop install fzf | |
Invoke-Expression (& { | |
$hook = if ($PSVersionTable.PSVersion.Major -lt 6) { 'prompt' } else { 'pwd' } | |
(zoxide init --hook $hook powershell | Out-String) | |
}) | |
# | |
# Some useful functions | |
# | |
function ll() { | |
Get-ChildItem -Force | |
} | |
function l() { | |
Get-ChildItem | |
} | |
function ca([string]$CondaEnviornmentName) { | |
conda activate $CondaEnviornmentName | |
} | |
function cx() { | |
conda deactivate | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
format = "$directory$cmd_duration$git_branch$nodejs$conda$line_break$character" | |
add_newline = true | |
[directory] | |
style = "fg:#0984e3" | |
format = "[[┌](bright-black) $path]($style)[$read_only]($read_only_style) " | |
[conda] | |
symbol = "c" | |
style = "bg:#43b02a fg:#ffffff" | |
ignore_base = false | |
truncation_length = 1 | |
format = "[ $symbol $environment[](bg:#ffffff00 fg:#43b02a)]($style)" | |
[git_branch] | |
symbol = " " | |
style = "bg:#4078c0 fg:#ffffff" | |
format = "[ on $symbol$branch ]($style)" | |
[character] | |
success_symbol = "[└](bright-black)" | |
error_symbol = "[└](red)" | |
[cmd_duration] | |
min_time = 0 | |
style = "bg:#636e72 fg:#ffffff" | |
format = "[[](bg:#ffffff00 fg:#636e72)$duration ]($style)" | |
[nodejs] | |
symbol = " " | |
style = "bg:#026e00 fg:#ffffff" | |
format = "[ $symbol($version )]($style)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment