aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <david.runge@native-instruments.de>2018-04-17 18:06:24 +0200
committerDavid Runge <david.runge@native-instruments.de>2018-04-17 18:06:24 +0200
commite7db8ce86d94a042d6e1d5caa0bc2272e28c300b (patch)
treea8868c433a864c44f11872e293a7c2afc90aad57
parentb21ad7e867c009810b2ffa9b1b4d4f9c619de355 (diff)
downloaddotfiles-e7db8ce86d94a042d6e1d5caa0bc2272e28c300b.tar.gz
dotfiles-e7db8ce86d94a042d6e1d5caa0bc2272e28c300b.tar.bz2
dotfiles-e7db8ce86d94a042d6e1d5caa0bc2272e28c300b.tar.xz
dotfiles-e7db8ce86d94a042d6e1d5caa0bc2272e28c300b.zip
.zsh.after/aliases.zsh: Adding special version of ssh.new for macOS.
Removing redundant and useless ls aliases.
-rw-r--r--.zsh.after/aliases.zsh6
1 files 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"