start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/bash | |
# Might as well ask for password up-front, right? | |
sudo -v | |
# Keep-alive: update existing sudo time stamp if set, otherwise do nothing. | |
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & | |
# Example: do stuff over the next 30+ mins that requires sudo here or there. | |
function wait() { |
#!/bin/bash | |
# ps -eo pcpu,pid,user,args | sort -r -k1 | |
PS="ps" | |
VERSION="0.0.1" | |
version () { | |
echo $VERSION | |
} |
#!/bin/bash | |
iterations=10 | |
# ----------------------------------------------------------------------------- | |
# Create array of results | |
declare -a results | |
for i in $(seq 1 $iterations); |
# Add to your .bashrc so the terminal starts in the project directory | |
if [[ ${INTELLIJ} == "true" ]]; then | |
cd ${OLDPWD} | |
fi | |
# Note that this works in IntelliJ 14, but not in 16. | |
# Change the shell path in IntelliJ's Tools > Terminal to: | |
# C:\cygwin64\bin\env INTELLIJ=true TERM=cygwin C:\cygwin64\bin\bash.exe --login -i |
Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.
Translations: (No guarantee that the translations are up-to-date)
I recently switched over to neovim (see my screenshots at the bottom). Below is my updated config file.
It's currently synchronized with my .vimrc
config except for a block of neovim-specific terminal key mappings.
This is still a work in progress (everyone's own config is always a labor of love), but I'm already extremely pleased with how well this is working for me with neovim. While terminal mode isn't enough to make me stop using tmux, it is quite good and I like having it since it simplifies my documentation workflow for yanking terminal output to paste in a markdown buffer.
These days I primarily develop in Go. I'm super thrilled and grateful for fatih/vim-go,