From: Nicolas Boisselier Date: Wed, 9 Nov 2016 14:02:19 +0000 (+0000) Subject: mac.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=84edff438f237428e5d820802dea8cc96f94e4c0;p=nb.git mac.sh --- diff --git a/etc/profile.d/mac.sh b/etc/profile.d/mac.sh index ec36bc74..70113653 100644 --- a/etc/profile.d/mac.sh +++ b/etc/profile.d/mac.sh @@ -17,9 +17,6 @@ case "$OSTYPE" in darwin*) alias strace='dtruss' alias updatedb='sudo bash -c "cd / && /usr/libexec/locate.updatedb &"' -#-------------------------------------------------------------------------------- -# seq / jot -# alias seq='jot -' alias mac_vlc_playlists='open -a vlc --args /home/nico/Music/*/*.m3u' @@ -38,6 +35,12 @@ alias macps_top="echo 'TOP PROCESSES:'; ps -Aro'%cpu, ucomm, user' | grep $USER alias mac_vlc_playlists="open -a vlc --args /home/nico/Music/*/*.m3u" alias mac_mount_nfs="sudo mount -o resvport -t nfs" +if ! which mysql > /dev/null; then + if which mysql5 > /dev/null; then + alias mysql=mysql5 + fi +fi + free() { vm_stat | perl -ne '/page size of (\d+)/ and $size=$1; /Pages\s+([^:]+)[^\d]+(\d+)/ and printf("%-23s: %10.2f Mo\n",$1, $2 * $size / 1048576);' }