This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fish_prompt -d "Write out the prompt" | |
set -g last_status $status | |
printf '[%s@%s %s%s%s]\n(%s%s/%s%s) %s%s%s > ' $USER $hostname \ | |
(set_color cyan) (prompt_date) (set_color normal) \ | |
(set_color yellow) $SHLVL (prompt_status) (set_color normal) \ | |
(set_color $fish_color_cwd) $PWD (set_color normal) | |
end | |
function prompt_date -d "Show date and time in prompt" | |
date "+%Y.%m.%d %H:%M" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'date' | |
require 'exif' # in turn requires libexif | |
require 'fileutils' | |
require 'json' | |
SOURCE = '/Volumes/home/Drive/GDrive/Takeout/Google Photos' | |
DEST = '/Volumes/home/Photos/PhotoLibrary' | |
def main | |
traverse(SOURCE) |
OlderNewer