Skip to content

Instantly share code, notes, and snippets.

View alaisary's full-sized avatar

Khalid Al Harthi alaisary

  • Oman
View GitHub Profile
tat
First,add this function ~/.zshrc:
# tat: tmux attach
function tat {
name=$(basename `pwd` | sed -e 's/\.//g')
if tmux ls 2>&1 | grep "$name"; then
tmux attach -t "$name"
elif [ -f .envrc ]; then
# --------#
# General #
# --------#
# Default shell
set -g default-shell $SHELL
# Terminal settings - FIXES BACKSPACE
set -g default-terminal "screen-256color"
set -g terminal-overrides 'xterm*:smcup@:rmcup@'