Skip to content

Instantly share code, notes, and snippets.

View qleguennec's full-sized avatar

Quentin Le Guennec qleguennec

  • France
View GitHub Profile
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_itoa.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: qle-guen <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/11/26 14:48:09 by qle-guen #+# #+# */
/* Updated: 2015/12/08 23:30:25 by qle-guen ### ########.fr */
/* */
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_striteri.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: qle-guen <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/11/24 09:49:17 by qle-guen #+# #+# */
/* Updated: 2015/11/24 10:12:32 by qle-guen ### ########.fr */
/* */
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_striter.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: qle-guen <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/11/25 07:57:08 by qle-guen #+# #+# */
/* Updated: 2015/11/25 08:01:54 by qle-guen ### ########.fr */
/* */
#! /bin/sh
function layout()
{
tmux lsw | head -n 1 | egrep -o -e "\[layout.*$" | awk '{print $2}' | sed 's/.$//'
}
function curwindow()
{
tmux lsw | awk '{print $2}' | grep '*' | sed 's/.$//'