diff options
| author | nsfisis <nsfisis@gmail.com> | 2021-05-31 00:57:13 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2021-05-31 00:57:13 +0900 |
| commit | 77db37d3506edd006c0d4edc8b216d869a06f30b (patch) | |
| tree | 6cc6cb455ad32244c89002abc4fb54cb2d70af81 /.config/fish/functions/mkcd.fish | |
| parent | 98be04b9ddb9ce3b0a8c41c74cb57460f1d872eb (diff) | |
| download | dotfiles-77db37d3506edd006c0d4edc8b216d869a06f30b.tar.gz dotfiles-77db37d3506edd006c0d4edc8b216d869a06f30b.tar.zst dotfiles-77db37d3506edd006c0d4edc8b216d869a06f30b.zip | |
fish shell
Diffstat (limited to '.config/fish/functions/mkcd.fish')
| -rw-r--r-- | .config/fish/functions/mkcd.fish | 9 |
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 |
