Skip to content

Instantly share code, notes, and snippets.

View MateusTymoniuk's full-sized avatar

Mateus Tymoniuk MateusTymoniuk

View GitHub Profile
@MateusTymoniuk
MateusTymoniuk / gist:f750e09cbc3e69e185da6fcec7d6853a
Created January 26, 2024 19:31
This gist contains a simple script to initialize a session with pre-defined windows on tmux
#!/bin/bash
# Set Session Name
SESSION="Work"
SESSIONEXISTS=$(tmux list-sessions | grep $SESSION)
# Only create tmux session if it doesn't already exist
if [ "$SESSIONEXISTS" = "" ]
then
# Start New Session with our name
@MateusTymoniuk
MateusTymoniuk / prepare-commit-msg
Last active July 29, 2024 09:05
prepare-commit-msg git hook to add jira ticket number to beginning of the commit msg
#!/bin/bash
# Hook based on this article: https://andy-carter.com/blog/automating-git-commit-messages-with-git-hooks
COMMIT_MSG_FILE=$1
COMMIT_SOURCE=$2
SHA1=$3
branch=$(git branch --show-current)
@MateusTymoniuk
MateusTymoniuk / .tmux.conf
Last active September 8, 2023 08:32
Useful configurations for tmux
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
bind r source-file ~/.tmux.conf
set -g base-index 1
# use mouse scrolling
set -g mouse on
@MateusTymoniuk
MateusTymoniuk / .ideavimrc
Last active September 8, 2023 08:32
My ideavimrc
"" Source your .vimrc
"source ~/.vimrc
"" -- Suggested options --
" Show a few lines of context around the cursor. Note that this makes the
" text scroll if you mouse-click near the start or end of the window.
set scrolloff=8
"" set relative line numbers
set relativenumber