Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
e4082a95
Unverified
Commit
e4082a95
authored
Dec 09, 2020
by
Marc Cornellà
Committed by
GitHub
Dec 09, 2020
Browse files
Options
Browse Files
Download
Plain Diff
fix(common-aliases)!: don't overshadow `fd` if installed (#9162)
BREAKING CHANGE: in `common-aliases`, the `fd` alias won't be defined if `fd` is installed (
https://github.com/sharkdp/fd
).
parents
e5af22cc
5feb2b67
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
README.md
plugins/common-aliases/README.md
+3
-1
common-aliases.plugin.zsh
plugins/common-aliases/common-aliases.plugin.zsh
+1
-1
No files found.
plugins/common-aliases/README.md
View file @
e4082a95
...
@@ -40,11 +40,13 @@ plugins=(... common-aliases)
...
@@ -40,11 +40,13 @@ plugins=(... common-aliases)
| Alias | Command | Description |
| Alias | Command | Description |
|-------|-----------------------------------------------------|-----------------------------------------|
|-------|-----------------------------------------------------|-----------------------------------------|
| fd
|
`find . -type d -name`
| Find a directory with the given name |
| fd
\*
|
`find . -type d -name`
| Find a directory with the given name |
| ff |
`find . -type f -name`
| Find a file with the given name |
| ff |
`find . -type f -name`
| Find a file with the given name |
| grep |
`grep --color`
| Searches for a query string |
| grep |
`grep --color`
| Searches for a query string |
| sgrep |
`grep -R -n -H -C 5 --exclude-dir={.git,.svn,CVS}`
| Useful for searching within files |
| sgrep |
`grep -R -n -H -C 5 --exclude-dir={.git,.svn,CVS}`
| Useful for searching within files |
\*
Only if the
[
`fd`
](
https://github.com/sharkdp/fd
)
command isn't installed.
### Other Aliases
### Other Aliases
| Alias | Command | Description |
| Alias | Command | Description |
...
...
plugins/common-aliases/common-aliases.plugin.zsh
View file @
e4082a95
...
@@ -34,7 +34,7 @@ alias -g P="2>&1| pygmentize -l pytb"
...
@@ -34,7 +34,7 @@ alias -g P="2>&1| pygmentize -l pytb"
alias
dud
=
'du -d 1 -h'
alias
dud
=
'du -d 1 -h'
alias
duf
=
'du -sh *'
alias
duf
=
'du -sh *'
alias
fd
=
'find . -type d -name'
((
$+
commands[fd]
))
||
alias
fd
=
'find . -type d -name'
alias
ff
=
'find . -type f -name'
alias
ff
=
'find . -type f -name'
alias
h
=
'history'
alias
h
=
'history'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment