Skip to content

Instantly share code, notes, and snippets.

View Tesohh's full-sized avatar

Simone Tesini Tesohh

View GitHub Profile
@Tesohh
Tesohh / bigpath.zsh-theme
Created December 11, 2020 19:41
my custom oh my zsh theme!
# prompt style and colors based on the halflife theme from the omz team:
# https://github.com/ohmyzsh/ohmyzsh/blob/master/themes/half-life.zsh-theme
# vcs_info modifications from Bart Trojanowski's zsh prompt:
# http://www.jukie.net/bart/blog/pimping-out-zsh-prompt
#
# git untracked files modification from Brian Carper:
# https://briancarper.net/blog/570/git-info-in-your-zsh-prompt
function virtualenv_info {
[ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
@Tesohh
Tesohh / tesohh-norm.zsh-theme
Last active December 17, 2020 16:03
slightly customized norm
PROMPT='%{$fg[yellow]%}🍌 %n%{$reset_color%} in %{$fg[green]%}%2~ %{$fg[magenta]%}:: $(git_prompt_info)$(hg_prompt_info)%{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="λ %{$fg[blue]%}git %{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg[yellow]%} :: %{$reset_color%}"
ZSH_THEME_HG_PROMPT_PREFIX="λ %{$fg[blue]%}hg %{$fg[red]%}"
ZSH_THEME_HG_PROMPT_SUFFIX="%{$fg[yellow]%} :: %{$reset_color%}"
@Tesohh
Tesohh / BackerUpper.java
Last active April 18, 2024 07:07
Quick and dirty plug and play class to save and read any object to and from a file
import java.io.*;
public class BackerUpper<T extends Object> {
public String path;
public BackerUpper(String path) {
this.path = path;
}
public void write(T value) throws IOException {
@Tesohh
Tesohh / keybindings.json
Created July 1, 2024 16:02
vscode config
// Place your key bindings in this file to override the defaults
[
{
"key": "alt+space",
"command": "whichkey.show"
},
{
"key": "shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"