Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
b05d8c3b
Unverified
Commit
b05d8c3b
authored
Aug 23, 2022
by
Roman Danyk
Committed by
GitHub
Aug 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(common-aliases): don't overshadow `duf` if installed (#11112)
parent
3668ec2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
README.md
plugins/common-aliases/README.md
+6
-1
common-aliases.plugin.zsh
plugins/common-aliases/common-aliases.plugin.zsh
+1
-1
No files found.
plugins/common-aliases/README.md
View file @
b05d8c3b
...
...
@@ -35,9 +35,11 @@ plugins=(... common-aliases)
| mv |
`mv -i`
| Move a file |
| zshrc |
`${=EDITOR} ~/.zshrc`
| Quickly access the ~/.zshrc file |
| dud |
`du -d 1 -h`
| Display the size of files at depth 1 in current location in human-readable form |
| duf
|
`du -sh`
| Display the size of files in current location in human-readable form |
| duf
\*
|
`du -sh`
| Display the size of files in current location in human-readable form |
| t |
`tail -f`
| Shorthand for tail which outputs the last part of a file |
\*
Only if the
[
`duf`
](
https://github.com/muesli/duf
)
command isn't installed.
### find and grep
| Alias | Command | Description |
...
...
@@ -66,12 +68,15 @@ These aliases are expanded in any position in the command line, meaning you can
end of the command you've typed. Examples:
Quickly pipe to less:
```
zsh
$
ls
-l
/var/log L
# will run
$
ls
-l
/var/log | less
```
Silences stderr output:
```
zsh
$
find
.
-type
f NE
# will run
...
...
plugins/common-aliases/common-aliases.plugin.zsh
View file @
b05d8c3b
...
...
@@ -35,7 +35,7 @@ alias -g NUL="> /dev/null 2>&1"
alias
-g
P
=
"2>&1| pygmentize -l pytb"
alias
dud
=
'du -d 1 -h'
alias
duf
=
'du -sh *'
((
$+
commands[duf]
))
||
alias
duf
=
'du -sh *'
((
$+
commands[fd]
))
||
alias
fd
=
'find . -type d -name'
alias
ff
=
'find . -type f -name'
...
...
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