Posts Tagged with
Just use $CMD_DURATION to get the time taken running the last command.
To make your prompt give you the elapsed time for every command you run in Terminal, add this function in your Fish config file ~/.config/fish/config.fish.
function fish_prompt; echo "$CMD_DURATION "; end The prompt will be like that.
I hope this helps you. You know someone will benefit from this, share it with him/her, a friend or colleage.
We can use string split like this (string split -r -m1 . $filename).
I use this method in my Fish script function.
function vidfps --description "vidfps <input.mp4>" ffmpeg -i $argv -filter:v fps=fps=24 (string split -r -m1 . $argv)-24fps.mp4 end The above function is located in my ~/.config/fish/config.fish file. So I can use it to convert a video to a 24 frames-per-second video using ffmpeg. the code (string split -r -m1 .
I looked at Apple manual page online, and didn’t find the page. So I decided to add it here for reference when needed.
FSCK_EXFAT(8) BSD System Manager's Manual FSCK_EXFAT(8) NAME fsck_exfat -- Verify and repair ExFAT file systems. SYNOPSIS fsck_exfat -q device ... fsck_exfat [-f] [-p] [-y | -n] [-g | -x] [-d] device ... DESCRIPTION The fsck_exfat utility verifies and repairs ExFAT file systems.