Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miltontom/up
Go back 'N' levels in the directory hierarchy easily!
https://github.com/miltontom/up
cd cli cli-command directory-navigation powershell up windows
Last synced: 6 days ago
JSON representation
Go back 'N' levels in the directory hierarchy easily!
- Host: GitHub
- URL: https://github.com/miltontom/up
- Owner: miltontom
- Created: 2023-11-13T16:06:18.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-29T12:08:12.000Z (12 months ago)
- Last Synced: 2024-11-12T23:16:48.189Z (2 months ago)
- Topics: cd, cli, cli-command, directory-navigation, powershell, up, windows
- Language: PowerShell
- Homepage:
- Size: 1.27 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Up
A better alternative for repetitive `cd ..`![](demo.gif)
## Description
A powershell script that takes you up __N__ directories in the hierarchy.Inspired from this awesome [StackOverflow](https://stackoverflow.com/a/245724) answer.
## Setup
Open powershell and execute,
```powershell
notepad $PROFILE
```
A pop-up might appear, click `Yes`.
In the script file add the following command,```powershell
Set-Alias -Name up -Value C:\Users\John\up\up.ps1
```
__NOTE:__ *The path to the* `up.ps1` *script file you saved should be mentioned*.Save the file, `Exit` from powershell and reopen it to use the script or from the current session execute,
```powershell
. $PROFILE
```
## Usage
#### Example 1
```powershell
C:\Users\John\Downloads> up
C:\Users\John>
```
#### Example 2
```powershell
C:\Users\John\Downloads\Pictures> up 3
C:\Users>
```