Misc: bash, rust, helix

- Fix: `.bashrc` not loaded when `.bash_login` doesn't exist
- Fix: Rust install script error when `cc` doesn't exist
- Style: use tabs
- Helix: use tabs for bash, toml, & markdown
- Helix: highlight rust scripts
This commit is contained in:
2023-04-06 12:35:40 -07:00
parent 38ec154801
commit cac1b3176a
3 changed files with 50 additions and 24 deletions

View File

@@ -39,10 +39,24 @@ EOF
if [ -f ~/.bash_profile ]; then
mv ~/.bash_profile ~/.bash_login
fi
cat >> ~/.bash_login << 'EOF'
if [ -f ~/.bash_login ]; then
cat >> ~/.bash_login << 'EOF'
# custom
EOF
else
cat >> ~/.bash_login << 'EOF'
# custom
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
EOF
fi
cat >> ~/.bash_login << 'EOF'
if [ -z "$TMUX" ] && [ -n "$SSH_TTY" ]; then
tput sc
tput smso