Add starship config and fix install commands.
This commit is contained in:
parent
8959303640
commit
bc9ac748d3
4 changed files with 62 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
## Usage
|
||||
|
||||
```
|
||||
mv dotemacs ~/.emacs
|
||||
cp dotemacs ~/.emacs
|
||||
```
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
## Usage
|
||||
|
||||
```
|
||||
mv dotgitconfig ~/.gitconfig
|
||||
cp dotgitconfig ~/.gitconfig
|
||||
```
|
||||
|
|
5
starship/readme.md
Normal file
5
starship/readme.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
## Usage
|
||||
|
||||
```
|
||||
cp starship.toml ~/.config/
|
||||
```
|
55
starship/starship.toml
Normal file
55
starship/starship.toml
Normal file
|
@ -0,0 +1,55 @@
|
|||
# Get editor completions based on the config schema
|
||||
"$schema" = 'https://starship.rs/config-schema.json'
|
||||
|
||||
# Inserts a blank line between shell prompts
|
||||
add_newline = true
|
||||
|
||||
format = """
|
||||
$username\
|
||||
$hostname\
|
||||
$directory\
|
||||
${custom.dcontrol}\
|
||||
$all
|
||||
"""
|
||||
|
||||
# Replace the '❯' symbol in the prompt with '➜'
|
||||
[character] # The name of the module we are configuring is 'character'
|
||||
success_symbol = '[\$](bold green)' # The 'success_symbol' segment is being set to '➜' with the color 'bold green'
|
||||
error_symbol = '[\$](bold red)'
|
||||
|
||||
[cmd_duration]
|
||||
disabled = true
|
||||
|
||||
[custom.dcontrol]
|
||||
format='[\[$symbol $output\]]($style) '
|
||||
command = "echo $DOCKER_HOST"
|
||||
symbol=' '
|
||||
style="bold red"
|
||||
when = '[ "$DOCKER_HOST" != "" ]'
|
||||
|
||||
[directory]
|
||||
truncation_length = 0
|
||||
format = '[$path]($style)[$read_only]($read_only_style)\] '
|
||||
|
||||
[git_branch]
|
||||
format = '[\[$symbol $branch\]]($style) '
|
||||
symbol = ' '
|
||||
|
||||
[golang]
|
||||
format = '[$symbol]($style)'
|
||||
|
||||
[hostname]
|
||||
format = '[@$hostname$ssh_symbol:]($style)'
|
||||
style = 'yellow'
|
||||
ssh_only = false
|
||||
|
||||
[package]
|
||||
disabled = true
|
||||
|
||||
[ruby]
|
||||
format = '[$symbol]($style)'
|
||||
|
||||
[username]
|
||||
format = '\[[$user]($style)'
|
||||
style_user = 'yellow'
|
||||
show_always = true
|
Loading…
Add table
Add a link
Reference in a new issue