Browse Source

.profile -> .zshenv

Josh Bicking 2 days ago
parent
commit
49123a26e3
4 changed files with 20 additions and 27 deletions
  1. 0 1
      profile/.zshenv
  2. 2 0
      vim/.vimrc
  3. 18 2
      zsh/.zshenv
  4. 0 24
      zsh/.zshrc.local

+ 0 - 1
profile/.zshenv

@@ -1 +0,0 @@
-.profile

+ 2 - 0
vim/.vimrc

@@ -0,0 +1,2 @@
+source $VIMRUNTIME/defaults.vim
+set mouse=

+ 18 - 2
profile/.profile → zsh/.zshenv

@@ -1,6 +1,9 @@
-# ~/.profile: executed by the command interpreter for login shells.
+# .zshenv
+#
+# Shared PATH discovery, history management, etc. across all machines.
+# .zshrc.local is reserved for per-machine customization.
 
-alias ls='ls --color=auto'
+### PATH ###
 
 pathappend() {
     for ARG in "$@"
@@ -30,3 +33,16 @@ if [ -d "$HOME/.bun" ]; then
     export PATH="$BUN_INSTALL/bin:$PATH"
     [ -s "/home/josh/.bun/_bun" ] && source "/home/josh/.bun/_bun"
 fi
+
+bindkey '^ ' autosuggest-accept
+
+
+### History ###
+
+export HISTFILE=~/.histfile
+
+# Ignore duplicates in history
+setopt HIST_IGNORE_DUPS
+
+# Delete old recorded entry if new entry is a duplicate.
+setopt HIST_IGNORE_ALL_DUPS

+ 0 - 24
zsh/.zshrc.local

@@ -1,24 +0,0 @@
-bindkey '^ ' autosuggest-accept
-
-# History
-
-HISTFILE=~/.histfile
-HISTSIZE=10000
-SAVEHIST=10000
-
-# Instantly write history
-setopt -o sharehistory
-
-# Ignore duplicates in history
-setopt HIST_IGNORE_DUPS
-
-# Delete old recorded entry if new entry is a duplicate.
-setopt HIST_IGNORE_ALL_DUPS
-
-setopt appendhistory autocd extendedglob nomatch
-
-# cdls
-function cd {
-    builtin cd "$@" && ls -F
-}
-