This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ============================================ | |
| # ESSENTIAL SETTINGS | |
| # ============================================ | |
| # Increase scrollback buffer | |
| set -g history-limit 50000 | |
| # Enable mouse support | |
| set -g mouse on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def replace_text(old, new, infile): | |
| L = [] | |
| outputfile = 'new_' + infile | |
| with open(str(infile), 'r') as f: | |
| for line in f: | |
| L.append(line.replace(old, new)) | |
| with open(outputfile, 'w') as f: | |
| for i in L: | |
| f.write(i + '\n') |