Skip to content

Commit

Permalink
docs: Add details about cd_on_quit on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lazysegtree committed Feb 4, 2025
1 parent f0339e1 commit d55a056
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions website/src/content/docs/configure/superfile-config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,13 @@ The editor your directories will be opened with (Leave blank to use defaults : `

- ###### cd_on_quit

:::note
Doesn't work on Windows at the moment.
:::

`true` => When you exit superfile, changes the terminal path to the last file panel you used.

`false` => When you exit superfile, the terminal path remains the same prior to superfile.

After setting to `true`, you need to update your `.bashrc` file.
After setting to `true`, you need to update your shell config file. Sample changes :

##### MacOS/Linux (bash)

Open the file:

Expand All @@ -66,6 +64,31 @@ Save, exit, and reload your `.bashrc` file:
source ~/.bashrc
```

##### Windows (Powershell)

Open the file:

```powershell
notepad $PROFILE
```

Copy the following code into the file:

<CodeBlock file="cd_on_quit/cd_on_quit.ps1" />

Save, exit, and reload your profile.

```powershell
. $PROFILE
```

:::note
You need to make sure powershell is allowed to execute script. If you get error like `running
scripts is disabled on this system`. You need to allow it.

Example command to enable - `Set-ExecutionPolicy -ExecutionPolicy RemoteSigned`
:::

- ###### default_open_file_preview

`true` => Shows the file preview window when you run superfile.
Expand Down

0 comments on commit d55a056

Please sign in to comment.