pastebin - collaborative debugging tool RSS

Posted by Anonymous on Mon 13th Apr 2015 21:11
raw | new post

  1. #!/usr/bin/env bash
  3. # This fixes the tmux_resurrect thing by replacing all instances of /home/olduser with the current expansion of $HOME.
  4. sed -i "s|/home/[[:alnum:]_]*|$HOME|g" ~/.tmux/resurrect/*
  6. # This links ~/.tmux/resurrect/last to the appropriate resurrect savefile.
  7. files=(~/.tmux/resurrect/*); latest=${files[-1]}
  8. ln -s ~/.tmux/resurrect/"$latest" ~/.tmux/resurrect/last

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}

All content is user-submitted.
The administrators of this site ( are not responsible for their content.
Abuse reports should be emailed to us at