mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +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.
|
||||
function gfind() {
|
||||
function gfindall() {
|
||||
fd -H -t f . -x grep --color=always -Hi ${1}
|
||||
}
|
||||
|
||||
# gfind with file pattern.
|
||||
function gfindf() {
|
||||
function gfindfall() {
|
||||
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
|
||||
function firefox-profiles() {
|
||||
"/Applications/Firefox.app/Contents/MacOS/firefox-bin --profilemanager"
|
||||
}
|
||||
|
||||
# Find files
|
||||
function ff() {
|
||||
fd -H -t f $1 . "$@"
|
||||
}
|
||||
|
||||
function start-cloud-storage() {
|
||||
cd /Applications
|
||||
open Dropbox.app &
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue