From 22a4e2a76a1025faf2f805efc3991c1976658816 Mon Sep 17 00:00:00 2001 From: James Patrick Date: Sat, 4 May 2019 01:46:59 -0400 Subject: [PATCH] Added Aliases for zsh --- zsh/modules/alias/init.zsh | 14 ++++++++++++++ zsh/zplug | 4 ++++ 2 files changed, 18 insertions(+) create mode 100644 zsh/modules/alias/init.zsh diff --git a/zsh/modules/alias/init.zsh b/zsh/modules/alias/init.zsh new file mode 100644 index 0000000..2eb7293 --- /dev/null +++ b/zsh/modules/alias/init.zsh @@ -0,0 +1,14 @@ +# ls shortcuts. +if [[ $OS_TYPE = darwin* ]] ; then + color_flag="-G" +else + color_flag="--color" +fi +alias ls="ls $color_flag" +alias l="ls -lh $color_flag" +alias la="ls -lha $color_flag" + +alias docker="sudo docker" +alias dc="sudo docker-compose" + +alias :q="exit" diff --git a/zsh/zplug b/zsh/zplug index 808dd3e..ddc0033 100644 --- a/zsh/zplug +++ b/zsh/zplug @@ -50,6 +50,10 @@ zplug "${ZDIR}/modules/keybinds/", \ from:local, \ as:plugin +zplug "${ZDIR}/modules/alias/", \ + from:local, \ + as:plugin + zplug "denysdovhan/spaceship-prompt", \ use:spaceship.zsh, \ from:github, \