Adding starship configuration
This commit is contained in:
parent
ed9aa84d9c
commit
d58bdbcb83
@ -130,3 +130,11 @@ fi
|
|||||||
|
|
||||||
echo "Adding local path folders ... ~/.local/bin"
|
echo "Adding local path folders ... ~/.local/bin"
|
||||||
export PATH="$PATH:~/.local/bin"
|
export PATH="$PATH:~/.local/bin"
|
||||||
|
|
||||||
|
echo "Setting vim as editor ..."
|
||||||
|
export EDITOR=vim
|
||||||
|
|
||||||
|
echo "Initializing starship ..."
|
||||||
|
eval "$(starship init bash)"
|
||||||
|
|
||||||
|
|
||||||
|
17
install.sh
17
install.sh
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
packages="sshpass tmux python3-pip"
|
packages="sshpass tmux python3-pip cargo"
|
||||||
pip="awscli"
|
pip="awscli"
|
||||||
|
|
||||||
read -p "Are you sure? (Y/N) "
|
read -p "Are you sure? (Y/N) "
|
||||||
@ -11,6 +11,9 @@ then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Creating necessary directories ..."
|
||||||
|
mkdir -p ~/.config
|
||||||
|
|
||||||
release=$(lsb_release -d | grep -i ubuntu > /dev/null && echo ubuntu || echo unknown)
|
release=$(lsb_release -d | grep -i ubuntu > /dev/null && echo ubuntu || echo unknown)
|
||||||
echo "Release is $release"
|
echo "Release is $release"
|
||||||
|
|
||||||
@ -42,3 +45,15 @@ then
|
|||||||
ln -sf ~/.dotfiles/tmux ~/.tmux
|
ln -sf ~/.dotfiles/tmux ~/.tmux
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# I hate this but no other option worked ...
|
||||||
|
if [[ ! -f /usr/local/bin/starship ]]
|
||||||
|
then
|
||||||
|
echo "Installing starship ..."
|
||||||
|
curl -sS https://starship.rs/install.sh | sh
|
||||||
|
fi
|
||||||
|
echo "Installing starship configuration ..."
|
||||||
|
rm -rf ~/.config/starship.toml
|
||||||
|
ln -sf ~/.dotfiles/starship/starship.toml ~/.config/starship.toml
|
||||||
|
|
||||||
|
. ~/.bashrc
|
||||||
|
|
||||||
|
33
starship/starship.toml
Normal file
33
starship/starship.toml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
# ~/.config/starship.toml
|
||||||
|
# Inserts a blank line between shell prompts
|
||||||
|
# add_newline = false
|
||||||
|
|
||||||
|
[line_break]
|
||||||
|
disabled = true
|
||||||
|
|
||||||
|
[character]
|
||||||
|
error_symbol = "[✗](bold red) "
|
||||||
|
|
||||||
|
[aws]
|
||||||
|
disabled = true
|
||||||
|
|
||||||
|
[kubernetes]
|
||||||
|
format = '[ $context](bold green) '
|
||||||
|
disabled = true
|
||||||
|
|
||||||
|
[kubernetes.context_aliases]
|
||||||
|
"i-00fc7cc49e1758b19@rcp.us-east-2.eksctl.io" = "rcp"
|
||||||
|
|
||||||
|
[python]
|
||||||
|
format = '[$virtualenv](dimmed yellow) '
|
||||||
|
|
||||||
|
[username]
|
||||||
|
style_user = "bold dimmed blue"
|
||||||
|
show_always = false
|
||||||
|
|
||||||
|
[hostname]
|
||||||
|
ssh_only = false
|
||||||
|
format = "<[$hostname]($style)>"
|
||||||
|
trim_at = "-"
|
||||||
|
style = "bold dimmed white"
|
||||||
|
disabled = true
|
Loading…
x
Reference in New Issue
Block a user