Skip to content

powershell script for simplifying file/folder creation

License

Notifications You must be signed in to change notification settings

JasimAlrawie/new

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

New

what is new?

New is simple powershell script that
simplify file/folder creation

inspired from linux touch command

how to use

Useage

new folder <foldername> [-flags]

new file <filename> [-flags]

Examples

new folder foo

this will create a folder called foo :)

new folder bar -git -code

this will create folder called bar and initilize git repo and open vscode at once

new file index.js -code -overwrite

this will create js file and open it in vscode
overwrite flag with force overwrite the file

new folder

why ?

why not ? :3

you make things more fast

how to install

  • download the new.ps1 file
  • place it in folder such as c:\scripts
  • add c:\scripts to your environment Path

flags

Folder

Flag description
cd will cd into the folder
code open the folder in vscode
git initialize git repository
overwrite will force overwrite the folder
h to show help message

File

Flag description
code open the file in vscode
overwrite will force overwrite the file
h to show help message

About

powershell script for simplifying file/folder creation

Resources

License

Stars

Watchers

Forks