Skip to content

Instantly share code, notes, and snippets.

View lunacookies's full-sized avatar

Luna Razzaghipour lunacookies

View GitHub Profile
# A xterm-256color based TERMINFO that adds the escape sequences for italic.
#
# Install:
#
# tic xterm-256color-italic.terminfo
#
# Usage:
#
# export TERM=tmux-256color-italic
#
# A xterm-256color based TERMINFO that adds the escape sequences for italic.
#
# Install:
#
# tic xterm-256color-italic.terminfo
#
# Usage:
#
# export TERM=xterm-256color-italic
#
@lunacookies
lunacookies / acme.vim
Created June 17, 2018 07:44
Vim colourscheme to go along with the acme.itermcolors in my dotfiles
autocmd vimrc ColorScheme * highlight! LineNr
\ ctermfg=8
autocmd vimrc ColorScheme * highlight! CursorLine
\ ctermfg=NONE
\ ctermbg=7
\ cterm=NONE
autocmd vimrc ColorScheme * highlight! StatusLine
\ ctermfg=4
\ ctermbg=12
\ cterm=bold
@lunacookies
lunacookies / get-plugins.sh
Last active January 24, 2022 11:17
Simple bash script for installing your Vim plugins the vanilla way
#!/usr/bin/env bash
# Enable extended globbing (we need it later)
shopt -s extglob
# What plugins we install
#
# Put the GitHub username<slash>repo name of each plugin you want in this array.
# e.g.
plugins=(

An Idea I Had On Shells

Hi, everyone! I recently found out about the performance benefits of keeping things (specifically command-line utilities) in one binary (groundbreaking, I know), and thought they might have some interesting applications in shell development. Don’t expect anything amazing or not-rambling though -- my ideas are not very well-formed at the moment.

GNU’s find and grep

Let’s say you are looking for {files,directories} that are named rust. Well, you might start with getting an overview of what you’re dealing with:

$ find .
@lunacookies
lunacookies / syntax_ideas.md
Last active May 7, 2020 01:37
Some Syntax Ideas

What is this?

I’m working on a new language (Fjord) for a shell (fj). Although I have some ideas of my own for syntax, I’m not sure if they’re a really bad idea or if they’re fine, so I’ve decided to conduct a ‘sanity check’ of sorts by writing some preliminary ideas down here. Please respond down in the comments with any thoughts you have!

General philosophy

Note: throughout this document I’ll refer to functions, which are what I’m calling commands.

As this is a language for a shell,

@lunacookies
lunacookies / jellybeans8.colortemplate
Last active June 16, 2020 09:45
Unreleased Jellybeans 8 and Tomorrow 8
# vim: set ft=colortemplate nomodeline:
Full name: Jellybeans 8
Short name: jellybeans8
Author: Aramis Razzaghipour <aramisnoah@gmail.com>
Description: A colourful dark colourscheme based on Jellybeans
Background: dark
Neovim: yes
#