Append this to your ~/.zshrc file.
function preexec() {
timer=$(($(date +%s%N)/1000000))| # Install ARCH Linux with encrypted file-system and UEFI | |
| # The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
| # Download the archiso image from https://www.archlinux.org/ | |
| # Copy to a usb-drive | |
| dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux | |
| # Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration. | |
| # Set swedish keymap |
| #!/usr/bin/fades | |
| import json | |
| import requests # fades | |
| import os | |
| DOLAR = "USD" | |
| LIBRA = "GBP" | |
| EURO = "EUR" |
| # Changing de prefix to Ctrl + a like GNU Screen | |
| set -g prefix C-a | |
| # Set de first windows to 1 instead cero. | |
| set -g base-index 1 | |
| setw -g pane-base-index 1 | |
| # reload tmux config | |
| bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
| # Split panes keys | |
| bind | split-window -h | |
| bind - split-window -v |
| #!/usr/bin/fades --python=python2 | |
| import eventlet # fades==0.14.0 | |
| from eventlet.green import urllib2 # fades==0.14.0 | |
| import argparse | |
| import time | |
| import logging | |
| from logging.handlers import RotatingFileHandler | |
| eventlet.monkey_patch() | |
| #logging config | |
| logfile = "replay.log" |