Skip to content

Instantly share code, notes, and snippets.

View ehaupt's full-sized avatar

Emanuel Haupt ehaupt

  • Zurich, Switzerland
View GitHub Profile
@mpangrazzi
mpangrazzi / Lambda-PS1
Created January 25, 2014 10:11
Clean PS1 (with current git branch displayed)
#
# This is a simple, clean PS1 with current git branch displayed.
# How will look like:
#
# λ ~/home/project (master)
#
# NOTE: You may have to configure your terminal to support UTF-8 Unicode (so λ will displayed correctly)
function parse_git_branch () {
@bbqtd
bbqtd / macos-tmux-256color.md
Last active August 7, 2024 14:39
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):