From 340f24bc2d22553e6b3f6ee30f51cf57bc6b9ddb Mon Sep 17 00:00:00 2001 From: Jim Richter Date: Thu, 18 Mar 2021 14:10:40 +0100 Subject: [PATCH] feat: add some functions --- configs/zsh/aliases.sh | 2 ++ configs/zsh/functions.zsh | 3 ++- configs/zsh/functions/mke.zsh | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 configs/zsh/functions/mke.zsh diff --git a/configs/zsh/aliases.sh b/configs/zsh/aliases.sh index 8eafb67..cf0c0cf 100644 --- a/configs/zsh/aliases.sh +++ b/configs/zsh/aliases.sh @@ -10,6 +10,8 @@ alias zshc="vim ~/.zshrc" alias zshu="source ~/.zshrc" alias nano="nvim" +alias vim="nvim" +alias v="nvim" alias ww="webpack -w" diff --git a/configs/zsh/functions.zsh b/configs/zsh/functions.zsh index 977a91b..644aa8d 100644 --- a/configs/zsh/functions.zsh +++ b/configs/zsh/functions.zsh @@ -3,4 +3,5 @@ source $(dirname "$0")/functions/fx.zsh; source $(dirname "$0")/functions/start.zsh; source $(dirname "$0")/functions/wp.zsh; source $(dirname "$0")/functions/y.zsh; -source $(dirname "$0")/functions/fp.zsh; \ No newline at end of file +source $(dirname "$0")/functions/fp.zsh; +source $(dirname "$0")/functions/mke.zsh; \ No newline at end of file diff --git a/configs/zsh/functions/mke.zsh b/configs/zsh/functions/mke.zsh new file mode 100644 index 0000000..dc9dfed --- /dev/null +++ b/configs/zsh/functions/mke.zsh @@ -0,0 +1,4 @@ +function mke(){ + mkdir -p $1 + cd $1 +} \ No newline at end of file