mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 02:51:32 +01:00
various improvements
This commit is contained in:
parent
628fe75ce3
commit
2f780fb7c5
1 changed files with 13 additions and 15 deletions
|
|
@ -242,18 +242,15 @@ lsd() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# the ol' gfind. Doesn't take a file pattern.
|
# the ol' gfind. Doesn't take a file pattern.
|
||||||
function gfindall() {
|
function gfind-all() {
|
||||||
fd -H -t f . -x grep --color=always -Hi ${1}
|
fd -H -t f . -x grep --color=always -Hi ${1}
|
||||||
}
|
}
|
||||||
|
|
||||||
# gfind with file pattern.
|
# gfind with file pattern.
|
||||||
function gfindfall() {
|
function gfind-filename-all() {
|
||||||
fd -H -t f ".${1}" . -x grep --color=always -Hi "$@"
|
fd -H -t f ".${1}" . -x grep --color=always -Hi "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
alias gfind=gfindall
|
|
||||||
alias gfind-filename-all=gfindall
|
|
||||||
|
|
||||||
# the ol' gfind. Doesn't take a file pattern.
|
# the ol' gfind. Doesn't take a file pattern.
|
||||||
function gfind() {
|
function gfind() {
|
||||||
fd -t f . -x grep --color=always -Hi ${1}
|
fd -t f . -x grep --color=always -Hi ${1}
|
||||||
|
|
@ -261,16 +258,22 @@ function gfind() {
|
||||||
|
|
||||||
# gfind with file pattern.
|
# gfind with file pattern.
|
||||||
function gfindf() {
|
function gfindf() {
|
||||||
fd -t f ".${1}" . -x grep --color=always -Hi "$@"
|
fd -t f ".${1}" . -x grep --color=always -Hi "$2"
|
||||||
}
|
}
|
||||||
|
|
||||||
alias gfind-filename=gfindf
|
alias gfind-filename=gfindf
|
||||||
|
|
||||||
alias ff='fd -t f .'
|
alias ff='fd -t f ' # find files
|
||||||
alias ffa='fd -H -t f .'
|
alias ffa='fd -H -t f ' # find files in horrible places
|
||||||
|
|
||||||
alias fd='\fd -t d .'
|
alias fdd='\fd -t d ' # find directories
|
||||||
alias fda='\fd -H -t d .'
|
alias fdir='fdd'
|
||||||
|
|
||||||
|
alias fdda='\fd -H -t d ' # find directories in horrible places
|
||||||
|
|
||||||
|
alias lg='l | grep ' # ls grep
|
||||||
|
|
||||||
|
alias git-stash-list-all='gitk `git stash list --pretty=format:%gd`'
|
||||||
|
|
||||||
# Launch firefox profile manager
|
# Launch firefox profile manager
|
||||||
function firefox-profiles() {
|
function firefox-profiles() {
|
||||||
|
|
@ -293,9 +296,4 @@ function kill-cloud-storage() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# Find directories
|
|
||||||
function fdir() {
|
|
||||||
fd -t d $1 .
|
|
||||||
}
|
|
||||||
|
|
||||||
alias fdd=fdir
|
alias fdd=fdir
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue