mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 02:51:32 +01:00
merged in master & gfind improvements
This commit is contained in:
parent
6d11dace69
commit
628fe75ce3
1 changed files with 22 additions and 8 deletions
|
|
@ -242,27 +242,41 @@ lsd() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# the ol' gfind. Doesn't take a file pattern.
|
# the ol' gfind. Doesn't take a file pattern.
|
||||||
function gfind() {
|
function gfindall() {
|
||||||
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 gfindf() {
|
function gfindfall() {
|
||||||
fd -H -t f ".${1}" . -x grep --color=always -Hi "$@"
|
fd -H -t f ".${1}" . -x grep --color=always -Hi "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
alias ffg=gfindf
|
alias gfind=gfindall
|
||||||
|
alias gfind-filename-all=gfindall
|
||||||
|
|
||||||
|
# the ol' gfind. Doesn't take a file pattern.
|
||||||
|
function gfind() {
|
||||||
|
fd -t f . -x grep --color=always -Hi ${1}
|
||||||
|
}
|
||||||
|
|
||||||
|
# gfind with file pattern.
|
||||||
|
function gfindf() {
|
||||||
|
fd -t f ".${1}" . -x grep --color=always -Hi "$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
alias gfind-filename=gfindf
|
||||||
|
|
||||||
|
alias ff='fd -t f .'
|
||||||
|
alias ffa='fd -H -t f .'
|
||||||
|
|
||||||
|
alias fd='\fd -t d .'
|
||||||
|
alias fda='\fd -H -t d .'
|
||||||
|
|
||||||
# Launch firefox profile manager
|
# Launch firefox profile manager
|
||||||
function firefox-profiles() {
|
function firefox-profiles() {
|
||||||
"/Applications/Firefox.app/Contents/MacOS/firefox-bin --profilemanager"
|
"/Applications/Firefox.app/Contents/MacOS/firefox-bin --profilemanager"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Find files
|
|
||||||
function ff() {
|
|
||||||
fd -H -t f $1 . "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
function start-cloud-storage() {
|
function start-cloud-storage() {
|
||||||
cd /Applications
|
cd /Applications
|
||||||
open Dropbox.app &
|
open Dropbox.app &
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue