mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-22 03:21:30 +01:00
zsh: cleanup functions
This commit is contained in:
parent
476fd545b5
commit
c6d444c709
|
@ -166,10 +166,7 @@ function list_functions
|
|||
}
|
||||
|
||||
|
||||
###########################
|
||||
## MAC SPECIFIC #
|
||||
###########################
|
||||
|
||||
# MacOS only
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
## Create a RAM disk. Default size 1GB. If supplied, first argument defines the RAM disk size in GB
|
||||
function ramdisk
|
||||
|
@ -194,25 +191,7 @@ function ramdisk
|
|||
echo "To eject (destroy) RAM disk, use:"
|
||||
echo " $ diskutil eject $mydev"
|
||||
}
|
||||
|
||||
## Open a pdf version of the man in Preview
|
||||
function man2pdf
|
||||
{
|
||||
man -t "$1" | open -f -a Preview
|
||||
}
|
||||
|
||||
## Open Man in separate (different-looking) window
|
||||
function nman
|
||||
{
|
||||
if [ $# -eq 1 ] ; then
|
||||
open "x-man-page://$1"
|
||||
elif [ $# -eq 2 ] ; then
|
||||
open "x-man-page://$1/$2"
|
||||
fi
|
||||
}
|
||||
fi
|
||||
|
||||
### end of mac-specific functions
|
||||
|
||||
pipupdate(){
|
||||
set -x
|
||||
|
|
Loading…
Reference in New Issue
Block a user