[READ-ONLY] Mirror of https://github.com/mrgnw/dotfiles. My shell customizations - aliases, functions, and themes.
dotfiles
shell
zinit
zsh
1sshake(){
2 ls $HOME/.ssh/id_rsa || ssh-keygen;
3 ssh-copy-id $@;
4}
5
6# user micro editor when session is ssh
7if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
8 SESSION_TYPE=remote/ssh
9 EDITOR=micro
10 SHELL_SYMBOL="%F{#05ffa1}✦%f"
11else
12 case $(ps -o comm= -p "$PPID") in
13 sshd|*/sshd) SESSION_TYPE=remote/ssh; SHELL_SYMBOL="%F{#05ffa1}✦%f";;
14 esac
15fi
16
17# https://unix.stackexchange.com/a/9607/77873