aboutsummaryrefslogtreecommitdiffhomepage
path: root/.config/fish/functions/mkcd.fish
diff options
context:
space:
mode:
Diffstat (limited to '.config/fish/functions/mkcd.fish')
-rw-r--r--.config/fish/functions/mkcd.fish9
1 files changed, 9 insertions, 0 deletions
diff --git a/.config/fish/functions/mkcd.fish b/.config/fish/functions/mkcd.fish
new file mode 100644
index 0000000..bba3238
--- /dev/null
+++ b/.config/fish/functions/mkcd.fish
@@ -0,0 +1,9 @@
+function mkcd
+ if [ (count $argv) != 1 ]
+ echo "Usage: mkcd DIR"
+ return 1
+ end
+
+ mkdir -p $argv[1]
+ cd $argv[1]
+end