diff options
author | Tyler Davis <tydavis@gmail.com> | 2023-08-23 10:07:38 -0700 |
---|---|---|
committer | Tyler Davis <tydavis@gmail.com> | 2023-08-23 10:07:38 -0700 |
commit | f4f41b262151be155a7189363017d981bce5125b (patch) | |
tree | 1bea8d660817b0ef9312082b00e864bae8d20bb3 /.profile | |
parent | e6e64033c20403e8e49509476efb7d53336fef46 (diff) | |
download | dotfiles-f4f41b262151be155a7189363017d981bce5125b.tar.gz dotfiles-f4f41b262151be155a7189363017d981bce5125b.zip |
git: streamline config, move git profile changes
Diffstat (limited to '.profile')
-rw-r--r-- | .profile | 30 |
1 files changed, 8 insertions, 22 deletions
@@ -16,30 +16,11 @@ if [ -d "$HOME/.golang" ]; then export PATH=$HOME/.golang/go/bin:$PATH:$HOME/.cargo/bin:$HOME/.golang/path/bin:$HOME/.local/bin fi -# Add Rust paths if present -if [ -f "$HOME/.cargo/env" ]; then - export PATH=$HOME/.cargo/bin:$PATH -fi # == Editors == -# VSCode -if [ "$(command -v code)" ]; then - export EDITOR="code" - export VISUAL="code" -else - # Vim not detected? Use vi as a fallback - if [ ! "$(command -v vim)" ]; then - alias vim=vi - fi - export EDITOR="vim" - export VISUAL="vim" -fi - -# We use Doom Emacs now? -if [ -d "$HOME/.config/doom" ]; then - export EDITOR="emacs" - export VISUAL="emacs" - export PATH=$PATH:$HOME/.config/emacs/bin +# Vim not detected? Use vi as a fallback +if [ ! "$(command -v vim)" ]; then + alias vim=vi fi # Ensure less always uses the one-page, raw control characters, and no-init settings @@ -56,6 +37,11 @@ if [ "$(command -v zstd)" ]; then fi # == Rust Tools ==# +# Add Rust paths if present +if [ -f "$HOME/.cargo/env" ]; then + export PATH=$HOME/.cargo/bin:$PATH +fi + if [ "$(command -v exa)" ]; then alias ls='exa -G --color never -a -s type -F --time-style=long-iso' alias ll='exa -l --color never -a -s type -F --time-style=long-iso' |