mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 02:51:32 +01:00
stuff
This commit is contained in:
parent
41215e8091
commit
6dec4d414f
1 changed files with 45 additions and 8 deletions
|
|
@ -236,15 +236,52 @@ function omz_urldecode {
|
||||||
echo -E "$decoded"
|
echo -E "$decoded"
|
||||||
}
|
}
|
||||||
|
|
||||||
# PSK buffoonery
|
|
||||||
kill_cloud_drives() {
|
|
||||||
pkill "Backup" ; pkill "Dropbox"
|
|
||||||
}
|
|
||||||
|
|
||||||
# PSK List directories only
|
# PSK List directories only
|
||||||
lsd() {
|
lsd() {
|
||||||
ls -d */
|
l | grep -E "^d"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Yoink
|
# the ol' gfind. Doesn't take a file pattern.
|
||||||
alias yoink="open -a Yoink"
|
function gfind() {
|
||||||
|
fd -H -t f . -x grep --color=always -Hi ${1}
|
||||||
|
}
|
||||||
|
|
||||||
|
# gfind with file pattern.
|
||||||
|
function gfindf() {
|
||||||
|
fd -H -t f ".${1}" . -x grep --color=always -Hi "$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
alias ffg=gfindf
|
||||||
|
|
||||||
|
# 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 &
|
||||||
|
open Backup\ and\ Sync.app &
|
||||||
|
open "Google Drive File Stream.app" &
|
||||||
|
cd -
|
||||||
|
}
|
||||||
|
|
||||||
|
function kill-cloud-storage() {
|
||||||
|
# TODO investigate pkill as alternative
|
||||||
|
killall "Google Drive File Stream" 2>/dev/null &
|
||||||
|
killall Dropbox 2>/dev/null &
|
||||||
|
killall "Backup and Sync" 2>/dev/null &
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# Find directories
|
||||||
|
function fdir() {
|
||||||
|
fd -t d $1 .
|
||||||
|
}
|
||||||
|
|
||||||
|
alias fdd=fdir
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue