From 6d66656bc4031d1a12eeca04baed92e4f3e3fd01 Mon Sep 17 00:00:00 2001 From: Adphi Date: Thu, 1 Nov 2018 12:10:17 +0100 Subject: [PATCH] Added mkcd and timestamp macro --- templates/zshrc.zsh-template | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/zshrc.zsh-template b/templates/zshrc.zsh-template index 154208ba..9d2bec64 100644 --- a/templates/zshrc.zsh-template +++ b/templates/zshrc.zsh-template @@ -109,6 +109,13 @@ fp() { done } +mkcd () +{ + mkdir -p -- "$1" && + cd -P -- "$1" +} +alias timestamp="date +%s" + alias wn="watch -n" fpath=(~/.zsh/completion $fpath) autoload -Uz compinit && compinit -i