pluck just a few things from omz common-aliases

Mon, 02 Dec 2019 19:38:49 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 02 Dec 2019 19:38:49 -0600
changeset 835
49826fe1c850
parent 833
b47cbc3b5db1
child 836
2f0a718712d1

pluck just a few things from omz common-aliases

.profile.common file | annotate | diff | comparison | revisions
.zshrc file | annotate | diff | comparison | revisions
--- a/.profile.common
+++ b/.profile.common
@@ -20,6 +20,14 @@ export DEVEL_REPL_PROFILE='Standard'
 export ASDF_CONCURRENCY='2'
 export RUBY_EXTRA_CONFIGURE_OPTIONS="--enable-shared --enable-install-doc"
 
+alias l='ls -lFh'     #size,show type,human readable
+alias la='ls -lAFh'   #long list,show almost all,show type,human readable
+alias lt='ls -ltFh'   #long list,sorted by date,show type,human readable
+alias ll='ls -l'      #long list
+alias rm='rm -i'
+alias cp='cp -i'
+alias mv='mv -i'
+
 alias hgcd='cd $(hg root)'
 alias gcd='cd "$(git rev-parse --show-toplevel)"'
 
--- a/.zshrc
+++ b/.zshrc
@@ -9,7 +9,6 @@ COMPLETION_WAITING_DOTS="true"
 DISABLE_UNTRACKED_FILES_DIRTY="true"
 
 omz_plugins=(
-  plugins/common-aliases
   plugins/colored-man-pages
   plugins/vi-mode
 )
@@ -37,6 +36,7 @@ fi
 
 KEYTIMEOUT=1
 REPORTTIME=5
+HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help"
 
 setopt list_packed
 setopt correct
@@ -44,7 +44,8 @@ setopt hist_reduce_blanks
 setopt hist_save_no_dups
 setopt interactive_comments
 
-export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help"
+# Make zsh know about hosts already accessed by SSH
+zstyle -e ':completion:*:(ssh|scp|sftp|rsh|rsync):hosts' hosts 'reply=(${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) /dev/null)"}%%[# ]*}//,/ })'
 
 # Altered from what's shown on Arch wiki
 [[ -n "${terminfo[khome]}" ]] && bindkey -- "${terminfo[khome]}" beginning-of-line

mercurial