mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2024-11-25 05:57:34 +00:00
Use global scope for aliases (#300)
This commit is contained in:
parent
e38f4d11bd
commit
9f2f2e978e
@ -7,6 +7,12 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## Unreleased
|
||||
|
||||
### Fixed
|
||||
|
||||
- PowerShell: use global scope for aliases.
|
||||
|
||||
## [0.7.9] - 2021-11-02
|
||||
|
||||
### Changed
|
||||
|
@ -107,8 +107,8 @@ function __zoxide_zi {
|
||||
{%- match cmd %}
|
||||
{%- when Some with (cmd) %}
|
||||
|
||||
Set-Alias -Name {{cmd}} -Value __zoxide_z -Option AllScope
|
||||
Set-Alias -Name {{cmd}}i -Value __zoxide_zi -Option AllScope
|
||||
Set-Alias -Name {{cmd}} -Value __zoxide_z -Option AllScope -Scope Global -Force
|
||||
Set-Alias -Name {{cmd}}i -Value __zoxide_zi -Option AllScope -Scope Global -Force
|
||||
|
||||
{%- when None %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user