mirror of
https://github.com/dcarrillo/prezto.git
synced 2026-01-18 17:04:25 +00:00
[git] Add git-clonecd function
This commit is contained in:
14
modules/git/functions/git-clonecd
Normal file
14
modules/git/functions/git-clonecd
Normal file
@@ -0,0 +1,14 @@
|
||||
#
|
||||
# Clone and cd
|
||||
#
|
||||
# Authors:
|
||||
# Daniel Carrillo <daniel.carrillo@gmail.com>
|
||||
#
|
||||
|
||||
# function git-clonecd {
|
||||
|
||||
local url=$1
|
||||
|
||||
git clone $url && cd "$(basename "$_" .git)"
|
||||
|
||||
# }
|
||||
Reference in New Issue
Block a user