This file contains 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
# https://github.com/gpakosz/.tmux | |
# (‑●‑●)> released under the WTFPL v2 license, by Gregory Pakosz (@gpakosz) | |
# -- navigation ---------------------------------------------------------------- | |
# if you're running tmux within iTerm2 | |
# - and tmux is 1.9 or 1.9a | |
# - and iTerm2 is configured to let option key act as +Esc | |
# - and iTerm2 is configured to send [1;9A -> [1;9D for option + arrow keys |
This file contains 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
#!/bin/sh | |
device='SynPS/2 Synaptics TouchPad' | |
state=$(xinput --list-props "$device" | grep 'Device Enabled' | awk '{print $4}') | |
action=$([ "$state" = 1 ] && echo "--disable" || echo "--enable") | |
notify=true | |
timeout=1000 | |
iconPath=/usr/share/icons/Adwaita/22x22/actions/ | |
iconOff=zoom-out.png |
This file contains 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
#!/bin/bash | |
N_ZSH="\n zsh not found. Installing it\n" # Not found | |
Y_ZSH="\n zsh found. Cloning prezto\n" # Yes found :P | |
install_zsh (){ | |
sudo apt-get update && sudo apt-get -y install zsh | |
} | |
clone_prezto (){ |
This file contains 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
alias ll='ls -alFh' | |
alias rm='rm -f' | |
alias grep='grep -i --color' | |
alias lgrep='ll | grep' | |
alias att='tmux attach' | |
alias :q='exit' | |
alias art='php artisan' | |
alias rell='source ~/.zshrc && echo "Profile reloaded"' | |
alias cls='echo -e "...\n\n\n\n\n..."; clear' | |
alias gdif='git diff' |
This file contains 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
#!/bin/bash | |
# | |
# (1) copy to: ~/ssh-host-color | |
# (2) set: alias ssh=~/ssh-host-color | |
# iTerm2 window color commands | |
term-bgcolor(){ | |
local R=$1 | |
local G=$2 | |
local B=$3 |
NewerOlder