powfile
A quick script to help you switch up powershell profile files, and reset them back to normal.
Why
I use different $profile settings when I’m doing screencasts/live demos, and a different one for script and project development.
Becomes too taxing to keep switching profile settings, especially when each project I use may come with it’s own settings.
Features
Incredibly Simple CLI script. Just specify the file (.ps1) you’re looking to place in your profile folder, and the script would take care of the rest.
Warns you before you overwrite an existing file.
Let’s you reset everything back to ‘normal’ (no profile files) if you’d like to have them go back to normal.
Simply uses ‘os’, ‘argparse’, ‘shutil’ libraries.
How To Use
cd into your project directory.
create a ‘custom-profile.ps1’ file with the required settings you’re looking for.
run ‘powfile -replace true’ to let the script work.
Options
replace: Replacement file that exists in current folder, to be copied into the powershell folder.
reset : Reset file back to default. true
profile : Custom powershell profile path, if you’re using a path that’s not %userprofile%/Documents/WindowsPowerShell.
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2019-12-14)
First release on PyPI.
Metadata
Release files for powfile 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| powfile-0.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for powfile-0.1.0-py2.py3-none-any.whl |
Release files / powfile-0.1.0-py2.py3-none-any.whl
| Download URL | powfile-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
200546e5873ee9b0206f6e9274fc45f8f2e15884a6317cdf89686c076704ab31
|
|
BLAKE2b-256 checksum How to use checksums |
6a343a824c25bdac81ac026597f70ef56af9247cc2e5be6c8d3902f41d5e111a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0
|
Security for powfile 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.