Skip to content

Commit

Permalink
feat: accelerate vterm in Emacs
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle0128 committed Sep 24, 2024
1 parent 91d6d7f commit cf76b3a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,20 @@ alias c='clear'
# Modern Unix commands
# See https://github.com/ibraheemdev/modern-unix
if (( $+commands[eza] )); then
alias ls='eza --color=auto --icons --group-directories-first'
if [ -n "$INSIDE_EMACS" ]; then
alias ls='eza --color=auto --group-directories-first'
else
alias ls='eza --color=auto --icons --group-directories-first'
fi
alias l='ls -lhF'
alias la='ls -lhAF'
alias tree='ls --tree'
elif (( $+commands[exa] )); then
alias ls='exa --color=auto --icons --group-directories-first'
if [ -n "$INSIDE_EMACS" ]; then
alias ls='exa --color=auto --group-directories-first'
else
alias ls='exa --color=auto --icons --group-directories-first'
fi
alias la='ls -lahF'
alias tree='ls --tree'
fi
Expand Down
4 changes: 2 additions & 2 deletions .zshrc.local
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Local configurations -*- mode: sh -*-

# Theme
if (( $+commands[starship] )); then
# Load starship theme (requires nerd fonts)
if (( $+commands[starship] )) && [ -z "$INSIDE_EMACS" ]; then
# Load starship theme (requires nerd fonts)
eval "$(starship init zsh)"
else
# Load the pure theme, with zsh-async library that's bundled with it.
Expand Down

0 comments on commit cf76b3a

Please sign in to comment.