From 2ac7faf884d929d32fe367c8d99b441367b98a40 Mon Sep 17 00:00:00 2001 From: Kat Huang Date: Sat, 25 Apr 2026 16:08:38 -0700 Subject: [PATCH] Remove legacy zsh startup files --- dotfiles/zshenv | 1 - dotfiles/zshrc | 27 --------------------------- 2 files changed, 28 deletions(-) delete mode 100644 dotfiles/zshenv delete mode 100644 dotfiles/zshrc diff --git a/dotfiles/zshenv b/dotfiles/zshenv deleted file mode 100644 index 8b137891..00000000 --- a/dotfiles/zshenv +++ /dev/null @@ -1 +0,0 @@ - diff --git a/dotfiles/zshrc b/dotfiles/zshrc deleted file mode 100644 index 1050ce54..00000000 --- a/dotfiles/zshrc +++ /dev/null @@ -1,27 +0,0 @@ -# This is necessary for tramp. -[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return - -source_if_exists ~/.custom.sh -source_if_exists ~/.this-machine.sh - -function emacs_ansi_term_support { - echo -e "\033AnSiTu" "$LOGNAME" # $LOGNAME is more portable than using whoami. - echo -e "\033AnSiTc" "$(pwd)" - if [ $(uname) = "SunOS" ]; then - # The -f option does something else on SunOS and is not needed anyway. - hostname_options=""; - else - hostname_options="-f"; - fi - # XXX/TODO: This disables correct setting of the current directory - # when in an sshed shell when inside of emacs - # echo -e "\033AnSiTh" "$(hostname $hostname_options)" # Using the -f option can # - # cause problems on some OSes. -} - -if environment_variable_exists INSIDE_EMACS; then - if [[ $INSIDE_EMACS == *"term"* ]] - then - add-zsh-hook precmd emacs_ansi_term_support - fi -fi