zsh: only use code -r alias in integrated terminal

This commit is contained in:
Erin 2022-11-02 11:26:18 -04:00
parent 69a37997cb
commit 91c1076680

View file

@ -16,5 +16,9 @@ alias la='ls -aFh'
alias l='ls -CFh' alias l='ls -CFh'
alias clip='xclip -selection clipboard' alias clip='xclip -selection clipboard'
alias copy='clip' alias copy='clip'
alias code='code -r'
function mkcd { mkdir -p $1 && cd $1 } function mkcd { mkdir -p $1 && cd $1 }
# Alias `code` to `code -r` if we're in the integrated terminal
if [ "$TERM_PROGRAM" = "vscode" ]; then
alias code='code -r'
fi