mirror of
https://github.com/trinib/Linux-Bash-Commands.git
synced 2024-10-01 06:35:36 -04:00
Update alternatives for history|find|cd.md
This commit is contained in:
parent
89d5b9be5d
commit
703e4a5214
@ -115,10 +115,12 @@ fzf interactive searching🔎 :
|
||||
</p>
|
||||
</details>
|
||||
|
||||
<details><summary><h3>A faster way to move around directories <img src="https://user-images.githubusercontent.com/18756975/201506739-b30571af-0223-4413-86a6-c6fb6a887ce3.png" width=15px height=20px></h3></summary>
|
||||
<details><summary><h3>Smarter directory navigating <img src="https://user-images.githubusercontent.com/18756975/201506739-b30571af-0223-4413-86a6-c6fb6a887ce3.png" width=15px height=20px></h3></summary>
|
||||
|
||||
[commacd](https://github.com/shyiko/commacd)
|
||||
|
||||
A faster way to move around
|
||||
|
||||
_**Install**_ :
|
||||
```bash
|
||||
curl -sSL https://github.com/shyiko/commacd/raw/v1.0.0/commacd.sh -o ~/.commacd.sh && \
|
||||
@ -163,6 +165,47 @@ Tab = Autocomplete
|
||||
|
||||
#
|
||||
|
||||
[zoxide](https://github.com/ajeetdsouza/zoxide)
|
||||
|
||||
It remembers which directories you use most frequently, so you can "jump" to them in just a few keystrokes.
|
||||
|
||||
<img src="https://user-images.githubusercontent.com/18756975/202857373-1317ab89-d787-4b11-b5b0-c0cd4ce154ab.gif" width=500px height=300px>
|
||||
|
||||
|
||||
|
||||
_**Install**_ :
|
||||
```bash
|
||||
apt install zoxide
|
||||
```
|
||||
|
||||
Open ~/.bashrc and add
|
||||
```
|
||||
eval "$(zoxide init bash)"
|
||||
```
|
||||
_Restart terminal_
|
||||
|
||||
_**Usage**_ :
|
||||
```bash
|
||||
z foo # cd into highest ranked directory matching foo
|
||||
z foo bar # cd into highest ranked directory matching foo and bar
|
||||
z foo / # cd into a subdirectory starting with foo
|
||||
|
||||
z ~/foo # z also works like a regular cd command
|
||||
z foo/ # cd into relative path
|
||||
z .. # cd one level up
|
||||
z - # cd into previous directory
|
||||
|
||||
zi foo # cd with interactive selection (using fzf)
|
||||
|
||||
z foo<SPACE><TAB> # show interactive completions (zoxide v0.8.0+, bash 4.4+/fish/zsh only)
|
||||
```
|
||||
|
||||
>**Note** - More info on usage :
|
||||
|
||||
> [Algorithm matching](https://github.com/ajeetdsouza/zoxide/wiki/Algorithm#matching)
|
||||
|
||||
#
|
||||
|
||||
</p>
|
||||
</details>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user