(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
syntax on | |
set relativenumber | |
set number | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set smartindent | |
set autoindent | |
set hidden | |
set autoread |
function go-update() { | |
DSTORE=${HOME}/Programs; | |
CURRENT_INSTALL=$(go version | cut -d" " -f3 | cut -do -f2) | |
LATEST_STABLE=$(curl -Ss https://go.dev/dl/ | grep -Po '>go.*linux-amd64\.tar\.gz' | cut -d'>' -f2 | head -1); | |
LATEST_VERSION=$(echo $LATEST_STABLE | grep -Po '[0-9]+\.[0-9]+(\.[0-9]+)?') | |
if [[ ${CURRENT_INSTALL} == ${LATEST_VERSION} ]]; then | |
printf "\nLatest stable version already installed. ${LATEST_VERSION}\n" | |
else | |
printf "\nCurrently installed version: ${CURRENT_INSTALL}.\nNewer version ${LATEST_VERSION} is available.\n" |
function makePass() { | |
LC_CTYPE=C; | |
local len=${1:-14} | |
local my_pass=$(tr -dc 'A-Za-z0-9_@#%^&*()-+=' < /dev/urandom | head -c ${len}) | |
echo "${my_pass}"; | |
} |
#!/bin/bash | |
set -e | |
trkpad=$(synclient | grep -i 'touchpadoff' | awk '{print $(NF)}') | |
if (( trkpad == 0 )); then | |
synclient TouchpadOff=1 | |
notify-send -t 1500 'Touchpad Disabled' | |
else |
" vim-plug example | |
call plug#begin('~/.vim/plugged') | |
Plug 'pearofducks/ansible-vim' | |
call plug#end() | |
let g:ansible_goto_role_paths = './roles,../_common/roles' | |
function! FindAnsibleRoleUnderCursor() | |
if exists("g:ansible_goto_role_paths") | |
let l:role_paths = g:ansible_goto_role_paths |
#!/usr/bin/env bash | |
# Backs up and restores tilix settings | |
set -e | |
if [[ $1 == 'backup' ]]; then | |
dconf dump '/com/gexperts/Tilix/' > tilix-settings.dconf | |
echo "backup done" | |
exit 0 |
"---------------------------------------------- | |
" Plugin management | |
" | |
" Download vim-plug from the URL below and follow the installation | |
" instructions: | |
" https://github.com/junegunn/vim-plug | |
"---------------------------------------------- | |
call plug#begin('~/.vim/plugged') | |
" Dependencies |
#### | |
# DigitalOcean: this file was written via cloud-init and composed from /etc/cloud/cloud.cfg | |
# In order to support resize events, 'growpart' and 'resizefs' are run each boot. | |
# 'update_etc_hosts' will be run only once per instance. To see the differences, run | |
# 'diff -u /etc/cloud/cloud.cfg /etc/cloud/cloud.cfg.d/90-digitalocean.cfg'. | |
#### | |
users: | |
- default |