1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-02-12 05:49:47 +08:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Richard Mitchell
fe83581a20
fix(last-working-dir): use builtin pwd (#11346) 2022-11-21 11:24:10 +01:00
Brenex
9697673616
docs(aliases): fix typos (#11348)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2022-11-21 11:23:16 +01:00
2 changed files with 6 additions and 6 deletions

View File

@ -15,14 +15,14 @@ Requirements: Python needs to be installed.
## Usage
- `acs`: show all aliases by group.
- `acs`: show all aliases by group
- `acs -h/--help`: print help mesage.
- `acs -h/--help`: print help mesage
- `acs <keyword>`: filter aliases by `<keyword>` and highlight.
- `acs <keyword>`: filter aliases by `<keyword>` and highlight
- `acs -g <group>/--group <group`: show only aliases for group `<group>`. Multiple uses of the flag show all groups,
- `acs -g <group>/--group <group>`: show only aliases for group `<group>`. Multiple uses of the flag show all groups
- `acs --groups-only`: show only group names
- `acs --groups`: show only group names
![screenshot](https://cloud.githubusercontent.com/assets/3602957/11581913/cb54fb8a-9a82-11e5-846b-5a67f67ad9ad.png)

View File

@ -9,7 +9,7 @@ chpwd_last_working_dir() {
[[ "$ZSH_SUBSHELL" -eq 0 ]] || return 0
# Add ".$SSH_USER" suffix to cache file if $SSH_USER is set and non-empty
local cache_file="$ZSH_CACHE_DIR/last-working-dir${SSH_USER:+.$SSH_USER}"
pwd >| "$cache_file"
builtin pwd >| "$cache_file"
}
# Changes directory to the last working directory