Updated scripts

This commit is contained in:
Christoffer Martinsson 2024-10-10 22:14:30 +02:00
parent ec5078eb67
commit 175340c4b5
3 changed files with 244 additions and 1 deletions

234
config/starship.toml Normal file
View File

@ -0,0 +1,234 @@
[character]
success_symbol = "[>](bold green)"
error_symbol = "[x](bold red)"
vimcmd_symbol = "[<](bold green)"
[git_commit]
tag_symbol = " tag "
[git_status]
ahead = ">"
behind = "<"
diverged = "<>"
renamed = "r"
deleted = "x"
[aws]
symbol = "aws "
[azure]
symbol = "az "
[bun]
symbol = "bun "
[c]
symbol = "C "
[cobol]
symbol = "cobol "
[conda]
symbol = "conda "
[crystal]
symbol = "cr "
[cmake]
symbol = "cmake "
[daml]
symbol = "daml "
[dart]
symbol = "dart "
[deno]
symbol = "deno "
[dotnet]
symbol = ".NET "
[directory]
read_only = " ro"
[docker_context]
symbol = "docker "
[elixir]
symbol = "exs "
[elm]
symbol = "elm "
[fennel]
symbol = "fnl "
[fossil_branch]
symbol = "fossil "
[gcloud]
symbol = "gcp "
[git_branch]
symbol = "git "
[gleam]
symbol = "gleam "
[golang]
symbol = "go "
[gradle]
symbol = "gradle "
[guix_shell]
symbol = "guix "
[hg_branch]
symbol = "hg "
[java]
symbol = "java "
[julia]
symbol = "jl "
[kotlin]
symbol = "kt "
[lua]
symbol = "lua "
[nodejs]
symbol = "nodejs "
[memory_usage]
symbol = "memory "
[meson]
symbol = "meson "
[nats]
symbol = "nats "
[nim]
symbol = "nim "
[nix_shell]
symbol = "nix "
[ocaml]
symbol = "ml "
[opa]
symbol = "opa "
[os.symbols]
AIX = "aix "
Alpaquita = "alq "
AlmaLinux = "alma "
Alpine = "alp "
Amazon = "amz "
Android = "andr "
Arch = "rch "
Artix = "atx "
CentOS = "cent "
Debian = "deb "
DragonFly = "dfbsd "
Emscripten = "emsc "
EndeavourOS = "ndev "
Fedora = "fed "
FreeBSD = "fbsd "
Garuda = "garu "
Gentoo = "gent "
HardenedBSD = "hbsd "
Illumos = "lum "
Kali = "kali "
Linux = "lnx "
Mabox = "mbox "
Macos = "mac "
Manjaro = "mjo "
Mariner = "mrn "
MidnightBSD = "mid "
Mint = "mint "
NetBSD = "nbsd "
NixOS = "nix "
OpenBSD = "obsd "
OpenCloudOS = "ocos "
openEuler = "oeul "
openSUSE = "osuse "
OracleLinux = "orac "
Pop = "pop "
Raspbian = "rasp "
Redhat = "rhl "
RedHatEnterprise = "rhel "
RockyLinux = "rky "
Redox = "redox "
Solus = "sol "
SUSE = "suse "
Ubuntu = "ubnt "
Ultramarine = "ultm "
Unknown = "unk "
Void = "void "
Windows = "win "
[package]
symbol = "pkg "
[perl]
symbol = "pl "
[php]
symbol = "php "
[pijul_channel]
symbol = "pijul "
[pulumi]
symbol = "pulumi "
[purescript]
symbol = "purs "
[python]
symbol = "py "
[quarto]
symbol = "quarto "
[raku]
symbol = "raku "
[ruby]
symbol = "rb "
[rust]
symbol = "rs "
[scala]
symbol = "scala "
[spack]
symbol = "spack "
[solidity]
symbol = "solidity "
[status]
symbol = "[x](bold red) "
[sudo]
symbol = "sudo "
[swift]
symbol = "swift "
[typst]
symbol = "typst "
[terraform]
symbol = "terraform "
[zig]
symbol = "zig "

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
if [ -f /home/$USER/.desktop_ubuntu_2204 ]; then if [ "$(dpkg -l | awk '/ubuntu-desktop/ {print }'|wc -l)" -ge 1 ]; then
while [ ! -f /media/$USER/RPI-RP2/INFO_UF2.TXT ]; do while [ ! -f /media/$USER/RPI-RP2/INFO_UF2.TXT ]; do
sleep 1 sleep 1
done done

View File

@ -127,6 +127,10 @@ cargo install eza
printf -- '\033[33m Installing zoxide\n\033[37m' printf -- '\033[33m Installing zoxide\n\033[37m'
cargo install zoxide --locked cargo install zoxide --locked
# Install starship
printf -- '\033[33m Installing starship\n\033[37m'
cargo install starship --locked
# Install fd # Install fd
printf -- '\033[33m Installing fd\n\033[37m' printf -- '\033[33m Installing fd\n\033[37m'
sudo nala install -y fd-find sudo nala install -y fd-find
@ -319,6 +323,10 @@ printf -- '\033[33m Symlinking lazygit config\n\033[37m'
mkdir -p ~/.config/lazygit mkdir -p ~/.config/lazygit
ln -sf ~/code_server/config/lazygit/config.yml ~/.config/lazygit/config.yml ln -sf ~/code_server/config/lazygit/config.yml ~/.config/lazygit/config.yml
# Symlink starsihp config
printf -- '\033[33m Symlinking starship config\n\033[37m'
ln -sf ~/code_server/config/starship.toml ~/.config/starship.toml
# Symlink luacheck config # Symlink luacheck config
printf -- '\033[33m Symlinking luacheck config\n\033[37m' printf -- '\033[33m Symlinking luacheck config\n\033[37m'
ln -sf ~/code_server/luacheckrc ~/.luacheckrc ln -sf ~/code_server/luacheckrc ~/.luacheckrc
@ -352,6 +360,7 @@ echo 'alias lsg="eza -1 -l --icons=auto --git-repos --git -h -g -o --no-permissi
echo 'alias lss="eza -1 -l --icons=auto -h -g --total-size -o --no-permissions -a"' >> ~/.bashrc echo 'alias lss="eza -1 -l --icons=auto -h -g --total-size -o --no-permissions -a"' >> ~/.bashrc
echo 'source ~/.fzf.bash' >> ~/.bashrc echo 'source ~/.fzf.bash' >> ~/.bashrc
echo 'eval "$(zoxide init bash)"' >> ~/.bashrc echo 'eval "$(zoxide init bash)"' >> ~/.bashrc
echo 'eval "$(starship init bash)"' >> ~/.bashrc
if [ $DESKTOP == "no" ] && [ $WSL == "no" ]; then if [ $DESKTOP == "no" ] && [ $WSL == "no" ]; then
# Add tmux/nvim autostart to bashrc # Add tmux/nvim autostart to bashrc