From e7db8ce86d94a042d6e1d5caa0bc2272e28c300b Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 17 Apr 2018 18:06:24 +0200 Subject: .zsh.after/aliases.zsh: Adding special version of ssh.new for macOS. Removing redundant and useless ls aliases. --- .zsh.after/aliases.zsh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.zsh.after/aliases.zsh b/.zsh.after/aliases.zsh index a89d72a..a5afca6 100644 --- a/.zsh.after/aliases.zsh +++ b/.zsh.after/aliases.zsh @@ -18,8 +18,6 @@ alias ls='ls --group-directories-first --color=auto' alias ll="ls -lh" alias la="ls -a" alias lal="ls -alhv" -alias ls='ls --group-directories-first --color=auto' -alias l='ls' alias lt='ls -tr' alias ll='ls -l' alias llh='ls -lh' @@ -216,6 +214,10 @@ alias nmdev="sudo nmcli dev" #SSH alias ssh.add="ssh-add $HOME/.ssh/id_{rsa,rsa_tu,ed25519,ed25519_aur,ed25519_github}" alias ssh.new='ssh-keygen -t ed25519 -C "$(whoami)@$(hostname)-$(date -I)"' +if [ $VENDOR = "apple" ]; then + # apple's date is broken + alias ssh.new='ssh-keygen -t ed25519 -C "$(whoami)@$(hostname)-$(date +%Y-%m-%d)"' +fi alias pool='ssh pool -Y' alias sshtunnel="ssh -ND 44350 -v -p 46399 dave@frqb.zapto.org" # tunnel through home alias frqtun="ssh -ND 44350 -v frq" -- cgit v1.2.3-70-g09d2