Skip to content

Instantly share code, notes, and snippets.

@th507
th507 / agnoster.fish
Last active December 17, 2015 21:18 — forked from hauleth/agnoster.fish
improved user detection for Mac
set SEGMENT_SEPARATOR '⮀'
set SEGMENT_BG
set RSTATUS
# Create segment of prompt
function prompt_segment
set -l bg $argv[1]
set -l fg $argv[2]
[ (count $argv) -gt 2 ]; and set -l content $argv[3..-1]
@th507
th507 / make_ruby_dict.rb
Last active December 23, 2015 14:29 — forked from henry0312/make_ruby_dict.rb
making dictionary for vim autocomplete from http://henry.animeo.jp/wp/?p=1764 remove trailing =, ?
#!/usr/bin/env ruby
require 'uri'
if ARGV.size != 1
warn "Invalid argument"
exit
end
methods = []