mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 05:59:46 +08:00
Compare commits
No commits in common. "fe83581a20ab12010e9168977dc633c9da2924e1" and "d93f3174504f8a0c21aef6998714e3b67ba82606" have entirely different histories.
fe83581a20
...
d93f317450
@ -15,14 +15,14 @@ Requirements: Python needs to be installed.
|
|||||||
|
|
||||||
## Usage
|
## 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`: show only group names
|
- `acs --groups-only`: show only group names
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
@ -9,7 +9,7 @@ chpwd_last_working_dir() {
|
|||||||
[[ "$ZSH_SUBSHELL" -eq 0 ]] || return 0
|
[[ "$ZSH_SUBSHELL" -eq 0 ]] || return 0
|
||||||
# Add ".$SSH_USER" suffix to cache file if $SSH_USER is set and non-empty
|
# 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}"
|
local cache_file="$ZSH_CACHE_DIR/last-working-dir${SSH_USER:+.$SSH_USER}"
|
||||||
builtin pwd >| "$cache_file"
|
pwd >| "$cache_file"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Changes directory to the last working directory
|
# Changes directory to the last working directory
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user