diff --git a/dot_config/paru/paru.conf b/dot_config/paru/paru.conf index d852e9c..0e93c09 100644 --- a/dot_config/paru/paru.conf +++ b/dot_config/paru/paru.conf @@ -16,14 +16,14 @@ DevelSuffixes = -git -cvs -svn -bzr -darcs -always -hg -fossil SudoLoop #AurOnly #BottomUp -#RemoveMake +RemoveMake #UseAsk #SaveChanges -#CombinedUpgrade -#CleanAfter +CombinedUpgrade +CleanAfter #UpgradeMenu -#NewsOnUpgrade - +NewsOnUpgrade +SkipReview #LocalRepo #Chroot #Sign @@ -37,6 +37,3 @@ SudoLoop #FileManager = vifm #MFlags = --skippgpcheck #Sudo = doas - -[decman] -Url = https://github.com/kiviktnm/decman-pkgbuild/ \ No newline at end of file diff --git a/dot_config/starship.toml b/dot_config/starship.toml new file mode 100644 index 0000000..fc4f1bc --- /dev/null +++ b/dot_config/starship.toml @@ -0,0 +1,29 @@ +add_newline = false +username.show_always = true +username.format = "[$user]($style)" +username.style_user = "white" +hostname.ssh_only = false +hostname.format = "[$ssh_symbol$hostname]($style)" +hostname.style = "white" +directory.truncate_to_repo = false +directory.format = "[$path]($style)[$read_only]($read_only_style)" +directory.style = "white" +character.success_symbol = "[\\$](green)" +character.error_symbol = "[\\$](red)" +time.disabled = false +time.format = "[$time]($style)" +time.style = "white" +git_branch.always_show_remote = true +git_branch.format = "[$symbol](bright-black)[$branch]($style)" +git_branch.style = "white" +git_commit.only_detached = false +git_commit.tag_disabled = false +git_commit.format = "[$hash$tag]($style)" +git_commit.style = "bright-black" + + +# A minimal left prompt +format = "[\\[](bright-black)$username[@](bright-black)$hostname $directory[\\]](bright-black)$character" + +# move the rest of the prompt to the right +right_format = """$git_branch $git_commit $time""" \ No newline at end of file diff --git a/dot_zshrc b/dot_zshrc index fcbcfc4..bbb8e34 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -21,7 +21,7 @@ alias grep="ugrep" alias cd="z" alias cat="bat -p" alias update-mirrors="rate-mirrors arch | sudo tee /etc/pacman.d/mirrorlist; rate-mirrors chaotic-aur | sudo tee /etc/pacman.d/chaotic-mirrorlist" -alias update="paru; paru -c; flatpak update" +alias update="paru; flatpak update" alias l="ls --ignore-glob '$([ -f .hidden ] && cat .hidden | tr '\n' '|')'" @@ -29,3 +29,6 @@ alias l="ls --ignore-glob '$([ -f .hidden ] && cat .hidden | tr '\n' '|')'" # On github: https://github.com/k-yokoishi/zsh-prompt-generator PROMPT="[%n@%m %~]$ " RPROMPT="%?:%h | %*" + +# Starship after defining custom prompt, easy to remove +eval "$(starship init zsh)"