summaryrefslogtreecommitdiffstats
path: root/.profile
diff options
context:
space:
mode:
authorTyler Davis <tydavis@gmail.com>2023-08-23 10:07:38 -0700
committerTyler Davis <tydavis@gmail.com>2023-08-23 10:07:38 -0700
commitf4f41b262151be155a7189363017d981bce5125b (patch)
tree1bea8d660817b0ef9312082b00e864bae8d20bb3 /.profile
parente6e64033c20403e8e49509476efb7d53336fef46 (diff)
downloaddotfiles-f4f41b262151be155a7189363017d981bce5125b.tar.gz
dotfiles-f4f41b262151be155a7189363017d981bce5125b.zip
git: streamline config, move git profile changes
Diffstat (limited to '.profile')
-rw-r--r--.profile30
1 files changed, 8 insertions, 22 deletions
diff --git a/.profile b/.profile
index 8e503d2..d206611 100644
--- a/.profile
+++ b/.profile
@@ -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'