(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
:
#!/usr/bin/env bash | |
LC_ALL=C | |
local_branch="$(git rev-parse --abbrev-ref HEAD)" | |
valid_branch_regex="^(feature|bugfix|wip|junk|release|hotfix)\/[a-z0-9._-]+$" | |
message="There is something wrong with your branch name. Branch names in this project must adhere to this contract: $valid_branch_regex. Your push will be rejected. You should rename your branch to a valid name and try again." | |
if [[ ! $local_branch =~ $valid_branch_regex ]] |
// demo | |
// https://codesandbox.io/s/o3my2rxxy | |
<template lang="pug"> | |
.wrapper(v-click-outside='_ => opened = false') | |
input.dropdown( | |
type='text' | |
ref='inputBox' | |
@click='opened = !opened' | |
@keydown.prevent='' |
#!/bin/bash | |
# passing arguments to curl | |
# curl http://foo.com/script.sh | bash -s arg1 arg2 | |
args=("$@") | |
if [ $# -ne 1 ]; then | |
echo "Script must be passed a git repo containing dotfiles"; | |
echo "e.g. ./dotfile-init.sh https://gitlab.com/reed-jones/dotfiles.git"; | |
exit 1; |
# remap prefix from 'C-b' to 'C-a' | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# split panes using | and _ | |
bind | split-window -h | |
bind _ split-window -v | |
unbind '"' | |
unbind % |
# Set up the prompt | |
setopt histignorealldups sharehistory | |
# Keep 1000 lines of history within the shell and save it to ~/.zsh_history: | |
HISTSIZE=1000 | |
SAVEHIST=1000 | |
HISTFILE=~/.zsh_history | |
source ~/antigen.zsh | |
antigen use oh-my-zsh |
#!/bin/sh | |
# installs requirements and builds kitty from source | |
# on a fresh Ubuntu 18.04 install | |
# | |
# https://github.com/kovidgoyal/kitty | |
sudo apt install python3-dev git gcc build-essential pkg-config libharfbuzz-dev libpng-dev libfontconfig1-dev libgl1-mesa-dev libxkbcommon-x11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev | |
cd /opt | |
sudo git clone https://github.com/kovidgoyal/kitty |
local ret_status="%(?:%{$fg_bold[green]%}➜:%{$fg_bold[red]%}➜)" | |
local hostname="%{$fg[cyan]%}%M" | |
PROMPT='${hostname} ${ret_status} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" |
#### | |
# Generates an .m3u playlist of all desired files | |
# Reed Jones 07/04/18 | |
# | |
# python playlists.py | |
# >> generates .m3u containing all .mp4's in current directory by default | |
# >> saves as playlist.m3u | |
# | |
# python playlists.py --name my-great-playlist --extension .mp3 --path "C:\music\album" | |
# >> generates .m3u playlist containing all .mp4's and .mp3's in C:\music\album |
I hereby claim:
To claim this, I am signing this object: