@@ -114,6 +114,17 @@ DEPENDENCIES=(
114114 make
115115)
116116
117+ function install_starship() {
118+ if [[ $( uname) == " Linux" ]]; then
119+ log_event " info" " Installing ${PURPLE} starship${NO_COLOR} with ${BLUE} curl${NO_COLOR} 🚀"
120+ curl -sS https://starship.rs/install.sh | sh -s -- --yes & > /dev/null &
121+ spinner || log_event " error" " Failed to install ${PURPLE} starship${NO_COLOR} with ${BLUE} curl${NO_COLOR} "
122+ elif [[ $( uname) == " Darwin" ]]; then
123+ log_event " info" " Installing ${PURPLE} starship${NO_COLOR} with ${BLUE} brew${NO_COLOR} 🚀"
124+ brew install starship
125+ fi
126+ }
127+
117128function install_dependencies() {
118129 local package
119130 local packages_to_install=()
@@ -191,6 +202,7 @@ function install_dependencies() {
191202 pacman --sync --refresh --noconfirm " ${packages_to_install[@]} " & > /dev/null &
192203 spinner || log_event " error" " Failed to install ${PURPLE}${packages_to_install[@]}${NO_COLOR} with ${BLUE}${PACKAGE_MANAGER}${NO_COLOR} "
193204 fi
205+ install_starship
194206}
195207
196208# #########################################################
@@ -294,20 +306,19 @@ function symlink_shell() {
294306 symlink_item " ${DOTFILES_DIR} /shell/.shell_vars" " ${HOME} /.shell_vars"
295307 symlink_item " ${DOTFILES_DIR} /shell/.shell_aliases" " ${HOME} /.shell_aliases"
296308 symlink_item " ${DOTFILES_DIR} /shell/.shell_functions" " ${HOME} /.shell_functions"
309+ symlink_item " ${DOTFILES_DIR} /tools/starship/starship.toml" " ${HOME} /.config/starship.toml"
297310}
298311
299312function symlink_zsh() {
300313 # OhMyZsh
301314 symlink_item " ${DOTFILES_DIR} /bootstrap/oh-my-zsh" " ${HOME} /.oh-my-zsh"
302315 # OhMyZsh Custom Plugins
303- symlink_item " ${DOTFILES_DIR} /bootstrap/powerlevel10k" " ${HOME} /.oh-my-zsh/custom/themes/powerlevel10k"
304316 symlink_item " ${DOTFILES_DIR} /bootstrap/fast-syntax-highlighting" " ${HOME} /.oh-my-zsh/custom/plugins/fast-syntax-highlighting"
305317 symlink_item " ${DOTFILES_DIR} /bootstrap/zsh-autosuggestions" " ${HOME} /.oh-my-zsh/custom/plugins/zsh-autosuggestions"
306318 symlink_item " ${DOTFILES_DIR} /bootstrap/zsh-completions" " ${HOME} /.oh-my-zsh/custom/plugins/zsh-completions"
307319 # Shell Files
308320 symlink_item " ${DOTFILES_DIR} /shell/.zshrc" " ${HOME} /.zshrc"
309321 symlink_item " ${DOTFILES_DIR} /shell/.zprofile" " ${HOME} /.zprofile"
310- symlink_item " ${DOTFILES_DIR} /shell/.p10k.zsh" " ${HOME} /.p10k.zsh"
311322}
312323
313324function symlink_bash() {
0 commit comments