Created
April 9, 2024 20:52
-
-
Save fcsest/2d1f58abf77528180ee9eed056bdd57b to your computer and use it in GitHub Desktop.
Setup shells for starship and configure nushell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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