diff options
author | Aaditya Dhruv <[email protected]> | 2025-06-30 13:25:19 -0500 |
---|---|---|
committer | Aaditya Dhruv <[email protected]> | 2025-06-30 13:25:19 -0500 |
commit | 201caf44488ab9f6bb024081788a61f675ff63d2 (patch) | |
tree | c0654708fd06c113aa38f1e99da566734ba7de29 | |
parent | cdac22a1a720c7e2f7ab9d4fa6d62a9c2ec25208 (diff) |
Add starship shell config
-rw-r--r-- | src/config/files/shell/bashrc.d/10-export.sh | 1 | ||||
-rw-r--r-- | src/config/files/starship/starship.toml | 31 | ||||
-rw-r--r-- | src/config/tasks/main.yaml | 10 |
3 files changed, 41 insertions, 1 deletions
diff --git a/src/config/files/shell/bashrc.d/10-export.sh b/src/config/files/shell/bashrc.d/10-export.sh index e6c6e28..db1e0be 100644 --- a/src/config/files/shell/bashrc.d/10-export.sh +++ b/src/config/files/shell/bashrc.d/10-export.sh @@ -1,5 +1,6 @@ #!/bin/bash +eval "$(starship init bash)" export DISABLE_MAGIC_FUNCTIONS=true export BROWSER=/usr/bin/firefox export EDITOR="/usr/bin/nvim" diff --git a/src/config/files/starship/starship.toml b/src/config/files/starship/starship.toml new file mode 100644 index 0000000..e04bf38 --- /dev/null +++ b/src/config/files/starship/starship.toml @@ -0,0 +1,31 @@ +add_newline = false +[character] +success_symbol = '[\$](bold green)' +error_symbol = '[\$](bold red)' +vimcmd_symbol = '[V](bold green)' +vimcmd_replace_one_symbol = '[<](bold purple)' +vimcmd_replace_symbol = '[<](bold purple)' +vimcmd_visual_symbol = '[<](bold yellow)' + +[git_branch] +format = '[\[$branch\]]($style) ' +style = 'bright-yellow' + +[git_status] +format = '$ahead_behind$stashed$modified$staged$conflicted$typechanged$untracked' +ahead = '[>${count}](green) ' +diverged = '[${behind_count}<>${ahead_count}](green) ' +behind = '[<${count}](green) ' +untracked = '[?${count}](bright-blue) ' +stashed = '[*${count}](green) ' +modified = '[!${count}](bright-yellow) ' +staged = '[+${count}](bright-yellow) ' + +[directory] +style = 'green' + +[rust] +disabled = true + +[cmake] +disabled = true diff --git a/src/config/tasks/main.yaml b/src/config/tasks/main.yaml index 70c8d92..461084b 100644 --- a/src/config/tasks/main.yaml +++ b/src/config/tasks/main.yaml @@ -20,10 +20,18 @@ become: true become_user: "{{ username }}" ansible.builtin.copy: - src: shell/bashrc.d + src: shell/bashrc.d/ dest: "/home/{{ username }}/.bashrc.d" backup: yes + - name: Setup Starship + become: true + become_user: "{{ username }}" + ansible.builtin.copy: + src: starship/starship.toml + dest: "/home/{{ username }}/.config/starship.toml" + backup: yes + - name: Setup tmux become: true become_user: "{{ username }}" |