Adding new starship prompt.
This commit is contained in:
parent
0ae724e995
commit
aea0c13069
10
.bashrc
10
.bashrc
|
@ -87,6 +87,16 @@ shopt -s checkwinsize # checks term size when bash regains control
|
||||||
#ignore upper and lowercase when TAB completion
|
#ignore upper and lowercase when TAB completion
|
||||||
bind "set completion-ignore-case on"
|
bind "set completion-ignore-case on"
|
||||||
|
|
||||||
|
### COUNTDOWN
|
||||||
|
|
||||||
|
cdown () {
|
||||||
|
N=$1
|
||||||
|
while [[ $((--N)) > 0 ]]
|
||||||
|
do
|
||||||
|
echo "$N" | figlet -c | lolcat && sleep 1
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
### ARCHIVE EXTRACTION
|
### ARCHIVE EXTRACTION
|
||||||
# usage: ex <file>
|
# usage: ex <file>
|
||||||
ex ()
|
ex ()
|
||||||
|
|
|
@ -19,7 +19,7 @@ nm-applet &
|
||||||
volumeicon &
|
volumeicon &
|
||||||
/usr/bin/emacs --daemon &
|
/usr/bin/emacs --daemon &
|
||||||
|
|
||||||
conky -c $HOME/.config/conky/qtile/doom-one-01.conkyrc &
|
conky -c $HOME/.config/conky/leftwm/doom-one-01.conkyrc &
|
||||||
trayer --edge top --align right --widthtype request --padding 6 --SetDockType true --SetPartialStrut true --expand true --monitor 1 --transparent true --alpha 0 --tint 0x282c34 --height 22 &
|
trayer --edge top --align right --widthtype request --padding 6 --SetDockType true --SetPartialStrut true --expand true --monitor 1 --transparent true --alpha 0 --tint 0x282c34 --height 22 &
|
||||||
|
|
||||||
#set the theme.ron config
|
#set the theme.ron config
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
[xin_0]
|
[xin_0]
|
||||||
file=/home/dt/wallpapers/0157.jpg
|
file=/home/dt/wallpapers/0193.jpg
|
||||||
mode=0
|
mode=0
|
||||||
bgcolor=#000000
|
bgcolor=#000000
|
||||||
|
|
||||||
[xin_1]
|
[xin_1]
|
||||||
file=/home/dt/wallpapers/0157.jpg
|
file=/home/dt/wallpapers/0193.jpg
|
||||||
mode=0
|
mode=0
|
||||||
bgcolor=#000000
|
bgcolor=#000000
|
||||||
|
|
||||||
[xin_2]
|
[xin_2]
|
||||||
file=/home/dt/wallpapers/0157.jpg
|
file=/home/dt/wallpapers/0193.jpg
|
||||||
mode=0
|
mode=0
|
||||||
bgcolor=#000000
|
bgcolor=#000000
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
[geometry]
|
[geometry]
|
||||||
posx=0
|
posx=1936
|
||||||
posy=0
|
posy=40
|
||||||
sizex=1920
|
sizex=1884
|
||||||
sizey=1080
|
sizey=1020
|
||||||
|
|
||||||
[nitrogen]
|
[nitrogen]
|
||||||
view=icon
|
view=icon
|
||||||
|
|
|
@ -1,20 +1,129 @@
|
||||||
# Don't print a new line at the start of the prompt
|
#format = """
|
||||||
add_newline = false
|
#[╭─user───❯](bold blue) $username
|
||||||
|
#[┣─system─❯](bold yellow) $hostname
|
||||||
|
#[┣─project❯](bold red) $directory$rust$git_branch$git_status$package$golang$terraform$docker_context$python$docker_context$nodejs
|
||||||
|
#[╰─cmd────❯](bold green)
|
||||||
|
#"""
|
||||||
|
[username]
|
||||||
|
style_user = "green bold"
|
||||||
|
style_root = "red bold"
|
||||||
|
format = "[$user]($style) "
|
||||||
|
disabled = false
|
||||||
|
show_always = true
|
||||||
|
|
||||||
# Make prompt a single line instead of two lines
|
[hostname]
|
||||||
[line_break]
|
ssh_only = false
|
||||||
disabled = true
|
format = 'on [$hostname](bold purple) '
|
||||||
|
trim_at = "."
|
||||||
|
disabled = false
|
||||||
|
|
||||||
# Replace the "❯" symbol in the prompt with "➜"
|
# Replace the "❯" symbol in the prompt with "➜"
|
||||||
# [character] # The name of the module we are configuring is "character"
|
[character] # The name of the module we are configuring is "character"
|
||||||
# success_symbol = "[➜](bold green)" # The "success_symbol" is set to "➜" with color "bold green"
|
success_symbol = "[➜](bold green)" # The "success_symbol" segment is being set to "➜" with the color "bold green"
|
||||||
|
error_symbol = "[✗](bold red)"
|
||||||
|
#
|
||||||
|
# configure directory
|
||||||
|
[directory]
|
||||||
|
read_only = " "
|
||||||
|
truncation_length = 10
|
||||||
|
truncate_to_repo = true # truncates directory to root folder if in github repo
|
||||||
|
style = "bold italic blue"
|
||||||
|
|
||||||
# Use custom format
|
[cmd_duration]
|
||||||
# format = """
|
min_time = 4
|
||||||
# [┌───────────────────>](bold green)
|
show_milliseconds = false
|
||||||
# [│](bold green)$directory$rust$package
|
disabled = false
|
||||||
# [└─>](bold green) """
|
style = "bold italic red"
|
||||||
|
|
||||||
|
[aws]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[conda]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[dart]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
#[directory]
|
||||||
|
#read_only = " "
|
||||||
|
|
||||||
|
[docker_context]
|
||||||
|
symbol = " "
|
||||||
|
format = "via [$symbol$context]($style) "
|
||||||
|
style = "blue bold"
|
||||||
|
only_with_files = true
|
||||||
|
detect_files = ["docker-compose.yml", "docker-compose.yaml", "Dockerfile"]
|
||||||
|
detect_folders = []
|
||||||
|
disabled = false
|
||||||
|
|
||||||
|
[elixir]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[elm]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[git_branch]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[golang]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[hg_branch]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[java]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[julia]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[haskell]
|
||||||
|
symbol = "λ "
|
||||||
|
|
||||||
|
[memory_usage]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[nim]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[nix_shell]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
# Disable the package module, hiding it from the prompt completely
|
|
||||||
[package]
|
[package]
|
||||||
disabled = true
|
symbol = " "
|
||||||
|
|
||||||
|
[perl]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[php]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[python]
|
||||||
|
symbol = "🐍 "
|
||||||
|
#pyenv_version_name = true
|
||||||
|
format = 'via [${symbol}python (${version} )(\($virtualenv\) )]($style)'
|
||||||
|
style = "bold yellow"
|
||||||
|
pyenv_prefix = "venv "
|
||||||
|
python_binary = ["./venv/bin/python", "python", "python3", "python2"]
|
||||||
|
detect_extensions = ["py"]
|
||||||
|
version_format = "v${raw}"
|
||||||
|
|
||||||
|
[ruby]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[rust]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[scala]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[shlvl]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[swift]
|
||||||
|
symbol = "ﯣ "
|
||||||
|
|
||||||
|
[nodejs]
|
||||||
|
format = "via [ Node.js $version](bold green) "
|
||||||
|
detect_files = ["package.json", ".node-version"]
|
||||||
|
detect_folders = ["node_modules"]
|
||||||
|
|
Loading…
Reference in New Issue