[READ-ONLY] Mirror of https://github.com/mrgnw/dotfiles. My shell customizations - aliases, functions, and themes.
dotfiles shell zinit zsh
0

Configure Feed

Select the types of activity you want to include in your feed.

dotfiles / ssh.zsh
413 B 18 lines
1sshake(){ 2 ls $HOME/.ssh/id_rsa || ssh-keygen -t rsa; 3 ssh-copy-id $@; 4} 5 6# user micro editor when session is ssh 7if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then 8 # add these customizations 9 SESSION_TYPE=remote/ssh 10 # echo "ahoy! $SESSION_TYPE" 11 EDITOR=micro 12else 13 case $(ps -o comm= -p "$PPID") in 14 sshd|*/sshd) SESSION_TYPE=remote/ssh;; 15 esac 16fi 17 18# https://unix.stackexchange.com/a/9607/77873