Skip to content

Instantly share code, notes, and snippets.

@Yanguk
Yanguk / macos-tmux-256color.md
Created July 2, 2023 02:30 — forked from bbqtd/macos-tmux-256color.md
Installing tmux-256color for macOS

Installing tmux-256color for macOS

  • macOS 10.15.5
  • tmux 3.1b

macOS has ncurses version 5.7 which does not ship the terminfo description for tmux. There're two ways that can help you to solve this problem.

The Fast Blazing Solution

Instead of tmux-256color, use screen-256color which comes with system. Place this command into ~/.tmux.conf or ~/.config/tmux/tmux.conf(for version 3.1 and later):

@Yanguk
Yanguk / Maybe.ts
Last active February 27, 2023 01:12
Typescript Monad Pattern / Option, Maybe, Some, None
interface Option<T> {
unwrap(): T;
expect(err: string | Error): T;
isSome(): boolean;
map<U>(f: (a: T) => U): Option<U>;
}
export default class Maybe {
private constructor() {}