From bacb273f81d083505d24f5249d576b11f62e8fee Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Fri, 2 Aug 2019 11:37:32 +0100 Subject: [PATCH] Make colourscheme solarized dark when sshing --- shells/shared/functions | 9 +++++++++ shells/zsh/ssh-color-scheme | 1 + 2 files changed, 10 insertions(+) create mode 120000 shells/zsh/ssh-color-scheme diff --git a/shells/shared/functions b/shells/shared/functions index da5c3a92..ed7ad72e 100644 --- a/shells/shared/functions +++ b/shells/shared/functions @@ -238,3 +238,12 @@ function updatePath(){ } +function ssh(){ + if [ -L $HOME/.dotfiles/shells/zsh/ssh-color-scheme ]; then + source $HOME/.dotfiles/shells/zsh/ssh-color-scheme + fi + command /usr/bin/ssh "$@" + if [ -L $HOME/.dotfiles/shells/zsh/current-color-scheme ]; then + source $HOME/.dotfiles/shells/zsh/current-color-scheme + fi +} diff --git a/shells/zsh/ssh-color-scheme b/shells/zsh/ssh-color-scheme new file mode 120000 index 00000000..4b0028b8 --- /dev/null +++ b/shells/zsh/ssh-color-scheme @@ -0,0 +1 @@ +base16-shell/scripts/base16-solarized-dark.sh \ No newline at end of file