Skip to content

Instantly share code, notes, and snippets.

View jskogelin's full-sized avatar
💣

Jonathan jskogelin

💣
  • Workbuster AB
  • Stockholm
View GitHub Profile
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
#env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will
@jskogelin
jskogelin / tmux-spotify
Created February 4, 2019 08:07
Returns the current playing song in Spotify for OSX
#!/usr/bin/env osascript
# Returns the current playing song in Spotify for OSX
tell application "Spotify"
if it is running then
set track_name to name of current track
set artist_name to artist of current track
set roundedTime to round (((duration of current track) / 1000)) rounding down
set progress to round (player position / roundedTime) * 100 rounding up
@jskogelin
jskogelin / alacritty-dark-plus.yml
Created December 5, 2018 12:47
VSCode default syntax theme but for Alacritty.
# Colors (Dark plus)
colors:
primary:
background: '0x1E1E1E'
foreground: '0xD4D4D4'
normal:
black: '0x1E1E1E'
red: '0xF44747'
green: '0x608B4E'
call plug#begin('~/.local/share/nvim/plugged')
" plugins
Plug 'tpope/vim-surround'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'itchyny/lightline.vim'
Plug 'raimondi/delimitmate'
Plug 'kana/vim-textobj-user'
Plug 'scrooloose/nerdtree'
@jskogelin
jskogelin / .zshrc
Last active December 6, 2017 12:03
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="zhann"
# Uncomment the following line to use case-sensitive completion.
set -sg escape-time 0
set -g base-index 1
# remap prefix to Control + a
set -g prefix C-a
# bind 'C-a C-a' to type 'C-a'
bind C-a send-prefix
unbind C-b
@jskogelin
jskogelin / gist:050eec84c7367f1d7d6c
Last active August 29, 2015 14:23
git aliases (oh-my-zsh + others)
# ERRY DAYYY
gcm='git checkout master'
gl='git pull'
gm='git merge'
gp='git push'
gsta='git stash'
gstp='git stash pop'
# TIG
t='tig'