Skip to content

Instantly share code, notes, and snippets.

@fcsest
Created April 9, 2024 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fcsest/2d1f58abf77528180ee9eed056bdd57b to your computer and use it in GitHub Desktop.
Save fcsest/2d1f58abf77528180ee9eed056bdd57b to your computer and use it in GitHub Desktop.
Setup shells for starship and configure nushell
#!/bin/bash
echo 'Criando diretório nushell...'
mkdir -p ${HOME}/.config/nushell/
echo 'Configurando nushell...'
echo 'mkdir ~/.cache/starship\\nstarship init nu | save -f ~/.cache/starship/init.nu\\n\\nalias cat = batcat --style=auto\\nalias ls = exa --icons -la\\nalias r = radian' >> ${HOME}/.config/nushell/env.nu
echo '$env.config = {show_banner: false}\\n\\nsource ~/.cache/starship/init.nu' >> ${HOME}/.config/nushell/config.nu
echo 'Configurando starship...'
echo 'eval "$(starship init bash)"' >> ${HOME}/.bashrc
echo 'eval "$(starship init zsh)"' >> ${HOME}/.zshrc
curl -o ${HOME}/.config/starship.toml https://gist.githubusercontent.com/fcsest/f97400d67eca08965e01f68853088301/raw/starship.toml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment