# HG changeset patch # User Meredith Howard # Date 1575337129 21600 # Node ID 49826fe1c8504842897b18ee7ef02a31a1d0dffa # Parent b47cbc3b5db10b94e5f0623b49604d7c18e3eb5d pluck just a few things from omz common-aliases diff --git a/.profile.common b/.profile.common --- 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)"' diff --git a/.zshrc b/.zshrc --- 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