This file contains hidden or 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
    
  
  
    
  | # include this from .bashrc, .zshrc or | |
| # another shell startup file with: | |
| # source $HOME/.shellfishrc | |
| # | |
| # Running from Secure ShellFish | |
| # this gives access to: | |
| # openUrl to open pages or deeps links | |
| # pbcopy to copy text to iOS clipboard | |
| # pbpaste to paste from iOS clipboard | |
| # quicklook to preview files | 
  
    
      This file contains hidden or 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
    
  
  
    
  | #set-option -g default-command "exec /bin/bash" | |
| # remap prefix from 'C-b' to 'C-a' | |
| unbind C-b | |
| set-option -g prefix C-a | |
| bind-key C-a send-prefix | |
| # split panes using | and - | |
| bind | split-window -h | |
| bind - split-window -v | 
  
    
      This file contains hidden or 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
    
  
  
    
  | // Anniversaries v1.1 Jan 2019 | |
| let currentMonth = new Date().getMonth(); | |
| let startDate = new Date(new Date().setMonth(currentMonth-6)); | |
| // Add two months from today to show some upcoming anniversaries | |
| let endDate = new Date(new Date().setMonth(currentMonth+7)); | |
| // Add a convenience function for brief month names | |
| Date.prototype.getMonthName = function() { | 
  
    
      This file contains hidden or 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
    
  
  
    
  | // - JW Library lookup #scripts | |
| const e = editor; | |
| let line_range = e.getSelectedLineRange(); | |
| let eol = line_range[0] + line_range[1]; | |
| if (e.getTextInRange(eol - 1, 1) === '\n' ) { | |
| eol = eol - 1; | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | let dailyText = await loadText() | |
| if (config.runsInWidget) { | |
| let widget = createWidget(dailyText) | |
| Script.setWidget(widget) | |
| Script.complete() | |
| } else { | |
| Safari.open(dailyText.wtlibUrl); | |
| } |