feat: add macos setup
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[settings]
|
||||
post_update_command = ["git pull", "jj git fetch"]
|
||||
post_update_command = ["jj git fetch"]
|
||||
post_clone_command = ["jj git init --colocate"]
|
||||
|
||||
[settings.cache]
|
||||
|
@@ -1,19 +1,11 @@
|
||||
# Get editor completions based on the config schema
|
||||
"$schema" = 'https://starship.rs/config-schema.json'
|
||||
|
||||
[nodejs]
|
||||
disabled = true
|
||||
|
||||
[scala]
|
||||
disabled = true
|
||||
|
||||
format = """
|
||||
$username\
|
||||
$hostname\
|
||||
$directory\
|
||||
$git_branch\
|
||||
$git_state\
|
||||
$git_status\
|
||||
${custom.jj}\
|
||||
$cmd_duration\
|
||||
$line_break\
|
||||
$python\
|
||||
@@ -27,24 +19,32 @@ success_symbol = "[❯](#FF9966)"
|
||||
error_symbol = "[❯](red)"
|
||||
vimcmd_symbol = "[❮](green)"
|
||||
|
||||
[git_branch]
|
||||
format = "[$branch]($style)"
|
||||
style = "bright-black"
|
||||
# [git_branch]
|
||||
# format = "[$branch]($style)"
|
||||
# style = "bright-black"
|
||||
|
||||
[git_status]
|
||||
format = "[[(*$conflicted$untracked$modified$staged$renamed$deleted)](218) ($ahead_behind$stashed)]($style)"
|
||||
style = "#FF9966"
|
||||
conflicted = ""
|
||||
untracked = ""
|
||||
modified = ""
|
||||
staged = ""
|
||||
renamed = ""
|
||||
deleted = ""
|
||||
stashed = "≡ "
|
||||
# [git_status]
|
||||
# format = "[[(*$conflicted$untracked$modified$staged$renamed$deleted)](218) ($ahead_behind$stashed)]($style)"
|
||||
# style = "cyan"
|
||||
# conflicted = ""
|
||||
# untracked = ""
|
||||
# modified = ""
|
||||
# staged = ""
|
||||
# renamed = ""
|
||||
# deleted = ""
|
||||
# stashed = "≡"
|
||||
|
||||
[git_state]
|
||||
format = '\([$state( $progress_current/$progress_total)]($style)\) '
|
||||
style = "bright-black"
|
||||
# [git_state]
|
||||
# format = '\([$state( $progress_current/$progress_total)]($style)\) '
|
||||
# style = "bright-black"
|
||||
|
||||
[custom.jj]
|
||||
command = "prompt"
|
||||
format = "$output"
|
||||
ignore_timeout = false
|
||||
shell = ["starship-jj", "--ignore-working-copy", "starship"]
|
||||
use_stdin = false
|
||||
when = true
|
||||
|
||||
[cmd_duration]
|
||||
format = "[$duration]($style) "
|
||||
@@ -54,10 +54,63 @@ style = "yellow"
|
||||
format = "[$virtualenv]($style) "
|
||||
style = "bright-black"
|
||||
|
||||
[rust]
|
||||
symbol = "rs "
|
||||
format = "[$symbol]($style)"
|
||||
# [nodejs]
|
||||
# disabled = true
|
||||
|
||||
[golang]
|
||||
symbol = "go "
|
||||
format = "[$symbol]($style)"
|
||||
# [scala]
|
||||
# disabled = true
|
||||
|
||||
# format = """
|
||||
# $username\
|
||||
# $hostname\
|
||||
# $directory\
|
||||
# $git_branch\
|
||||
# $git_state\
|
||||
# $git_status\
|
||||
# $cmd_duration\
|
||||
# $line_break\
|
||||
# $python\
|
||||
# $character"""
|
||||
|
||||
# [directory]
|
||||
# style = "#FF9966"
|
||||
|
||||
# [character]
|
||||
# success_symbol = "[❯](#FF9966)"
|
||||
# error_symbol = "[❯](red)"
|
||||
# vimcmd_symbol = "[❮](green)"
|
||||
|
||||
# [git_branch]
|
||||
# format = "[$branch]($style)"
|
||||
# style = "bright-black"
|
||||
|
||||
# [git_status]
|
||||
# format = "[[(*$conflicted$untracked$modified$staged$renamed$deleted)](218) ($ahead_behind$stashed)]($style)"
|
||||
# style = "#FF9966"
|
||||
# conflicted = ""
|
||||
# untracked = ""
|
||||
# modified = ""
|
||||
# staged = ""
|
||||
# renamed = ""
|
||||
# deleted = ""
|
||||
# stashed = "≡ "
|
||||
|
||||
# [git_state]
|
||||
# format = '\([$state( $progress_current/$progress_total)]($style)\) '
|
||||
# style = "bright-black"
|
||||
|
||||
# [cmd_duration]
|
||||
# format = "[$duration]($style) "
|
||||
# style = "yellow"
|
||||
|
||||
# [python]
|
||||
# format = "[$virtualenv]($style) "
|
||||
# style = "bright-black"
|
||||
|
||||
# [rust]
|
||||
# symbol = "rs "
|
||||
# format = "[$symbol]($style)"
|
||||
|
||||
# [golang]
|
||||
# symbol = "go "
|
||||
# format = "[$symbol]($style)"
|
||||
|
@@ -278,7 +278,12 @@ default_layout "compact"
|
||||
//
|
||||
// copy_command "xclip -selection clipboard" // x11
|
||||
|
||||
{{ if .homebrew }}
|
||||
copy_command "pbcopy"
|
||||
{{ else }}
|
||||
copy_command "wl-copy" // wayland
|
||||
{{ end }}
|
||||
|
||||
|
||||
|
||||
// Choose the destination for copied text
|
||||
|
Reference in New Issue
Block a user