Skip to content

Instantly share code, notes, and snippets.

@Croer01
Croer01 / create_tmux_session-tamplate.sh
Last active August 17, 2021 10:13
This is a template script I use to configure tmux session
#!/bin/bash
# Default session name if none is set by argument
SESSION_NAME="session1"
if [[ ! -z $1 ]]; then
SESSION_NAME=$1
fi
# Configure the session if it doesn't exist
tmux has-session -t $SESSION_NAME 2>/dev/null
@Croer01
Croer01 / .tmux.conf
Last active May 27, 2026 10:41
configuration I use for tmux
# The CHERE_INVOKING=1 is to avoid Cygwin override startup path by $HOME: https://conemu.github.io/en/CygwinStartDir.html
set-environment -g CHERE_INVOKING 1
set-option -g default-terminal "screen-256color"
# STARTREGION Options suggested by LazyVim (using :LazyHealth)
set-option -g focus-events on
set-option -a terminal-features "xterm-256color:RGB"
# Show Undercurl of LazyVim's tokyonight theme
#set -g default-terminal "${TERM}"
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support
set -as terminal-overrides ',*:Setulc=\E[58::2::::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux-3.0
@Croer01
Croer01 / .vimrc
Last active November 13, 2024 21:13
configuration I use in vim
"map <Leader> :noh<cr>
set tabstop=4
set shiftwidth=4
set expandtab
set number
set cursorline
set hlsearch
set incsearch
@Croer01
Croer01 / .tigrc
Last active April 13, 2023 13:20
tig configuration file
# You must be enable the 256 palette in your terminal to be able to use this color configuration. eg: "export TERM=xterm-256color"
#colors
color diff-stat cyan default bold
color date magenta default
#set date in a preferred format
set blame-view-date = custom
set main-view-date = custom
set refs-view-date = custom
set stash-view-date = custom
@Croer01
Croer01 / nix-installer.sh
Last active February 9, 2018 22:30
script to install nix on cygwin64
#!/bin/sh
set -e
echo "installing nix..."
#go to https://github.com/transcode-open/apt-cyg to install apt-cyg in cygwin
apt-cyg install patch curl libcurl-devel perl perl-DBD-SQLite sqlite3 perl-WWW-Curl libcrypt-devel openssl-devel libbz2-devel libsqlite3-devel liblzma-devel libsodium-devel gcc-g++ make vim zlib-devel procps-ng xz pv openssh rsync wget git flex
mkdir -p tmp && cd tmp
#checkout nix
if [ ! -d "nix" ]; then
git clone https://github.com/NixOS/nix
@Croer01
Croer01 / conan-clion-profile
Created August 25, 2017 21:48
the profile I use to works with Conan package manager in Windows
[build_requires]
mingw_installer/0.1@lasote/testing
cmake_installer/0.1@lasote/stable
[settings]
os=Windows
arch=x86_64
compiler=gcc
compiler.version=4.9
compiler.libcxx=libstdc++11
compiler.threads=win32