Skip to content

hiAndrewQuinn/til

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Today I Learned (TIL)

I learn a lot of new things every day. At some point I decided I wanted to have a public record of some of them, so I wrote a shell script to let me open a terminal, type til, and immediately jot down whatever little tidbit I just came across. This repo is the result of that.

Quickstart

Trouble with all the programs I run in my various .fish scripts? Try Shell Bling Ubuntu, that should contain most of 'em.

  1. Fork the repo.
# NOTE: THIS IS THE FISH SHELL. FISH. 🐟

set gh_prompt 'set_color yellow; echo -n "My Github username is"; set_color normal; echo " :: "'
read --prompt $gh_prompt GITHUB_USERNAME
set check_gh (curl -sH "Accept: application/vnd.github.v3+json" https://api.github.com/users/$GITHUB_USERNAME | jq '.message' | tr -d '"')

if test "$check_gh" = "Not Found"
          set_color red; echo "Not found";  set_color normal; sleep 2; echo "Quitting the shell. Press Ctrl+C to stop."; sleep 3; exit 1
  else
          set_color green; echo "$GITHUB_USERNAME found!"; set_color normal;
  end



mkdir -p ~/Code/
cd ~/Code/
git clone https://github.com/$GITHUB_USERNAME/til.git
cd til/
rm -rf .git/

# Get our fish shells into your directory, then test them out.
cp *.fish ~/.config/fish/functions/

sleep 2
fzf-tags # for dynamic tag selection.
         # TAB to select, you can select multiple tags.

sleep 2
til      # for writing a new TIL. Includes fzf-tags. Magic! ✨

About

Today I Learned (TIL) - content / Markdown files only. See https://github.com/hiAndrewQuinn/til-site for the Hugo site we build using this as a submodule!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages