Skip to content

remmercier/fish-take

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

fish-take

A port of take command of Oh My Zsh framework.

Installation

Install using fisher:

fisher install remmercier/fish-take

Usage

take [GIT_URL|ARCHIVE_URL|FOLDER]

Examples

A git repository

/tmp
> take https://github.com/remmercier/fish-take.git
Cloning into 'fish-take'...
remote: Enumerating objects: 26, done.
remote: Counting objects: 100% (26/26), done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 26 (delta 6), reused 21 (delta 4), pack-reused 0 (from 0)
Unpacking objects: 100% (26/26), done.
Checking connectivity... done.

/tmp/fish-take
>

An archive

# With a tarball
/tmp
> take https://github.com/shoriminimoe/fish-extract/archive/refs/tags/v0.3.0.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  4199    0  4199    0     0   8770      0 --:--:-- --:--:-- --:--:--  8770

/tmp/fish-extract-0.3.0
>

# With a zip
/tmp
> take https://github.com/shoriminimoe/fish-extract/archive/refs/tags/v0.3.0.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  6141    0  6141    0     0  13592      0 --:--:-- --:--:-- --:--:-- 13592

/tmp/fish-extract-0.3.0
>

A folder

/tmp
> take my/new/location

/tmp/my/new/location
>

Bonus

Run take command without parameter brings you to a random temporary directory.

~
> take

/tmp/tmp.KHoq70emKk
>

About

A port of take command from oh-my-zsh

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages