Compare commits
26 Commits
wsl2
...
2d510d289c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2d510d289c | ||
|
|
6e20358ad6 | ||
|
|
fc6f51343d | ||
|
|
0e396c05b2 | ||
|
|
dc7a0d0987 | ||
|
|
7711e4156f | ||
|
|
c793146ebb | ||
|
|
56bfec57ca | ||
|
|
009385e3fd | ||
|
|
bf00633d7c | ||
|
|
db782bb84a | ||
|
|
70b7da4461 | ||
|
|
4b1509acf7 | ||
|
|
457fa93727 | ||
|
|
414317c19f | ||
|
|
2e14989a23 | ||
|
|
1839f9e875 | ||
|
|
c80216989c | ||
|
|
7c620dba19 | ||
|
|
d1ee31378d | ||
|
|
bf33a8bbd7 | ||
|
|
42deab7c3e | ||
|
|
ed2c9d2b6a | ||
|
|
3e4baa2b63 | ||
|
|
1d937b9316 | ||
|
|
75de8dcadb |
22
bash/.bashrc
22
bash/.bashrc
@@ -91,27 +91,18 @@ OMB_USE_SUDO=true
|
||||
# Add wisely, as too many completions slow down shell startup.
|
||||
completions=(
|
||||
asdf
|
||||
brew
|
||||
docker
|
||||
docker-compose
|
||||
gh
|
||||
git
|
||||
go
|
||||
helm
|
||||
kubectl
|
||||
makefile
|
||||
maven
|
||||
minikube
|
||||
npm
|
||||
nvm
|
||||
oc
|
||||
pip3
|
||||
pip
|
||||
sdkman
|
||||
ssh
|
||||
system
|
||||
tmux
|
||||
vagrant
|
||||
composer
|
||||
ssh
|
||||
)
|
||||
|
||||
# Which aliases would you like to load? (aliases can be found in ~/.oh-my-bash/aliases/*)
|
||||
@@ -127,8 +118,12 @@ aliases=(
|
||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||
# Add wisely, as too many plugins slow down shell startup.
|
||||
plugins=(
|
||||
bashmarks
|
||||
bash-preexec
|
||||
cargo
|
||||
colored-man-pages
|
||||
git
|
||||
zoxide
|
||||
)
|
||||
|
||||
# Which plugins would you like to conditionally load? (plugins can be found in ~/.oh-my-bash/plugins/*)
|
||||
@@ -171,11 +166,7 @@ source "$OSH"/oh-my-bash.sh
|
||||
# users are encouraged to define aliases within the OSH_CUSTOM folder.
|
||||
# For a full list of active aliases, run `
|
||||
|
||||
# export EDITOR="emacs -nw"
|
||||
# export VISUAL="emacs"
|
||||
|
||||
alias ls='ls --color=auto --group-directories-first'
|
||||
alias lsx='ls -AXF'
|
||||
|
||||
# Replace grep command tool
|
||||
alias grep='grep --color=auto'
|
||||
@@ -187,7 +178,6 @@ alias paths='echo -e ${PATH//:/\\n}' # path: Echo all executable Paths
|
||||
alias userlist="cut -d: -f1 /etc/passwd | sort"
|
||||
alias ip='ip -color'
|
||||
alias stow='stow -d $DOTFILES '
|
||||
alias em='emacsclient -t'
|
||||
|
||||
# User specific aliases and functions
|
||||
if [ -d ~/.bashrc.d ]; then
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if command -v /home/linuxbrew/.linuxbrew/bin/brew >/dev/null 2>&1; then
|
||||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||
if command -v brew > /dev/null 2>&1; then
|
||||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||
fi
|
||||
|
||||
0
bash/.bashrc.d/starship.sh
Executable file → Normal file
0
bash/.bashrc.d/starship.sh
Executable file → Normal file
@@ -1,5 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if command -v zoxide >/dev/null 2>&1; then
|
||||
eval "$(zoxide init bash)"
|
||||
fi
|
||||
791
bash/.dircolors
791
bash/.dircolors
@@ -1,791 +0,0 @@
|
||||
# LS_COLORS ($Source: /my/shell/setup/.dircolors$)
|
||||
# for ANSI color code see also [*](https://en.wikipedia.org/wiki/ANSI_escape_code)
|
||||
#
|
||||
# Maintainers: Magnus Woldrich <m@japh.se>,
|
||||
# Ryan Delaney <ryan.delaney@gmail.com> OpenGPG: 0D98863B4E1D07B6
|
||||
# Michel G. Combes <michelc@gc-bank.org> OpenGPG:
|
||||
# URL: https://github.com/trapd00r/LS_COLORS
|
||||
# Version: 0.254
|
||||
# Updated: Tue Mar 29 21:25:30 AEST 2016
|
||||
#
|
||||
# This is a collection of extension:color mappings, suitable to use as your
|
||||
# LS_COLORS environment variable. Most of them use the extended color map,
|
||||
# described in the ECMA-48 document; in other words, you'll need a terminal
|
||||
# with capabilities of displaying 256 colors.
|
||||
#
|
||||
# As of this writing, around 300 different filetypes/extensions is supported.
|
||||
# That's indeed a lot of extensions, but there's a lot more! Therefore I need
|
||||
# your help.
|
||||
#
|
||||
# Fork this project on github, add the extensions you are missing, and send me
|
||||
# a pull request.
|
||||
#
|
||||
# For files that usually ends up next to each other, like html, css and js,
|
||||
# try to pick colors that fit nicely together. Filetypes with multiple
|
||||
# possible extensions, like htm and html, should have the same color.
|
||||
|
||||
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE. See the Perl Artistic License for more details.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify it under
|
||||
# the terms of the Perl Artistic License as published by the Perl Foundation,
|
||||
# either version 1.0 of the License, or (at your option) any later version.
|
||||
#
|
||||
# You should have received a copy of the Perl Artistic License along
|
||||
# with this program. If not, see <http://www.perlfoundation.org/artistic_license_1_0>.
|
||||
|
||||
# core {{{1
|
||||
BLK 38;5;68
|
||||
CAPABILITY 38;5;17
|
||||
CHR 38;5;113;1
|
||||
DIR 38;1;35
|
||||
#DIR 04;38;5;223
|
||||
DOOR 38;5;127
|
||||
#EXEC 38;5;222;48;2;1;16;32;1
|
||||
EXEC 00;48;2;1;16;32;1
|
||||
#EXEC 38;5;208;1
|
||||
FIFO 38;5;126
|
||||
FILE 0
|
||||
LINK target
|
||||
MULTIHARDLINK 38;5;222;1
|
||||
# "NORMAL don't reset the bold attribute -
|
||||
# https://github.com/trapd00r/LS_COLORS/issues/11
|
||||
#NORMAL 38;5;254
|
||||
NORMAL 0
|
||||
ORPHAN 48;5;196;38;5;232;1
|
||||
OTHER_WRITABLE 04;1;38;5;153;48;2;10;40;2
|
||||
SETGID 48;5;3;38;5;0
|
||||
SETUID 38;5;220;1;3;100;1
|
||||
SOCK 38;5;197
|
||||
STICKY 38;5;86;48;5;234
|
||||
STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
|
||||
|
||||
*LS_COLORS 48;5;89;38;5;197;1;3;4;7 # :-)
|
||||
# }}}
|
||||
# documents {{{1
|
||||
*README 38;5;220;1
|
||||
*README.rst 38;5;220;1
|
||||
*README.md 38;5;220;1
|
||||
*LICENSE 38;5;220;1
|
||||
*COPYING 38;5;220;1
|
||||
*INSTALL 38;5;220;1
|
||||
*COPYRIGHT 38;5;220;1
|
||||
*AUTHORS 38;5;220;1
|
||||
*HISTORY 38;5;220;1
|
||||
*CONTRIBUTORS 38;5;220;1
|
||||
*PATENTS 38;5;220;1
|
||||
*VERSION 38;5;220;1
|
||||
*NOTICE 38;5;220;1
|
||||
*CHANGES 38;5;220;1
|
||||
#.log 38;5;190
|
||||
.log 38;5;70
|
||||
# plain-text {{{2
|
||||
.txt 38;5;253
|
||||
# markup {{{2
|
||||
.etx 38;5;184
|
||||
.info 38;5;184
|
||||
.markdown 38;5;184
|
||||
.md 38;5;184
|
||||
.mkd 38;5;184
|
||||
.nfo 38;5;184
|
||||
.pod 38;5;184
|
||||
.rst 38;5;184
|
||||
.tex 38;5;184
|
||||
.textile 38;5;184
|
||||
# key-value, non-relational data {{{2
|
||||
.bib 38;5;178
|
||||
.json 38;5;178
|
||||
.jsonl 38;5;178
|
||||
.msg 38;5;178
|
||||
.pgn 38;5;178
|
||||
.rss 38;5;178
|
||||
.xml 38;5;178
|
||||
.toml 38;5;178
|
||||
.yaml 38;5;178
|
||||
.yml 38;5;178
|
||||
.RData 38;5;178
|
||||
.rdata 38;5;178
|
||||
# }}}
|
||||
# binary {{{2
|
||||
.cbr 38;5;141
|
||||
.cbz 38;5;141
|
||||
.chm 38;5;141
|
||||
.djvu 38;5;141
|
||||
.pdf 38;5;141
|
||||
.PDF 38;5;141
|
||||
.mobi 38;5;141
|
||||
.epub 38;5;141
|
||||
# words {{{3
|
||||
.docm 38;5;111;4
|
||||
.doc 38;5;111
|
||||
.docx 38;5;111
|
||||
.eps 38;5;111
|
||||
.ps 38;5;111
|
||||
.odb 38;5;111
|
||||
.odt 38;5;111
|
||||
.rtf 38;5;111
|
||||
# presentation {{{3
|
||||
.odp 38;5;166
|
||||
.pps 38;5;166
|
||||
.ppt 38;5;166
|
||||
.pptx 38;5;166
|
||||
# Powerpoint show
|
||||
.ppts 38;5;166
|
||||
# Powerpoint with enabled macros
|
||||
.pptxm 38;5;166;4
|
||||
# Powerpoint show with enabled macros
|
||||
.pptsm 38;5;166;4
|
||||
# spreadsheet {{{3
|
||||
.csv 38;5;78
|
||||
# Open document spreadsheet
|
||||
.ods 38;5;112
|
||||
.xla 38;5;76
|
||||
# Excel spreadsheet
|
||||
.xls 38;5;112
|
||||
.xlsx 38;5;112
|
||||
# Excel spreadsheet with macros
|
||||
.xlsxm 38;5;112;4
|
||||
# Excel module
|
||||
.xltm 38;5;73;4
|
||||
.xltx 38;5;73
|
||||
# }}}
|
||||
# }}}
|
||||
# configs {{{2
|
||||
*config 1
|
||||
*cfg 1
|
||||
*conf 1
|
||||
*rc 1
|
||||
*authorized_keys 1
|
||||
*known_hosts 1
|
||||
.ini 1
|
||||
.plist 1
|
||||
# vim
|
||||
.viminfo 1
|
||||
# cisco VPN client configuration
|
||||
.pcf 1
|
||||
# adobe photoshop proof settings file
|
||||
.psf 1
|
||||
# }}}
|
||||
# }}}
|
||||
# code {{{1
|
||||
# version control {{{2
|
||||
.git 38;5;197
|
||||
.gitignore 38;5;240
|
||||
.gitattributes 38;5;240
|
||||
.gitmodules 38;5;240
|
||||
|
||||
# shell {{{2
|
||||
.awk 38;5;172
|
||||
.bash 38;5;172
|
||||
.bat 38;5;172
|
||||
.BAT 38;5;172
|
||||
.sed 38;5;172
|
||||
.sh 38;5;172
|
||||
.zsh 38;5;172
|
||||
.vim 38;5;172
|
||||
|
||||
# interpreted {{{2
|
||||
.ahk 38;5;41
|
||||
# python
|
||||
.py 38;5;41
|
||||
.ipynb 38;5;41
|
||||
# ruby
|
||||
.rb 38;5;41
|
||||
.gemspec 38;5;41
|
||||
# perl
|
||||
.pl 38;5;107
|
||||
.pm 38;5;77
|
||||
.PL 38;5;160
|
||||
.t 38;5;114
|
||||
# sql
|
||||
.msql 38;5;222
|
||||
.mysql 38;5;222
|
||||
.pgsql 38;5;222
|
||||
.sql 38;5;222
|
||||
# Tool Command Language
|
||||
.tcl 38;5;64;1
|
||||
# R language
|
||||
.r 38;5;49
|
||||
.R 38;5;49
|
||||
# GrADS script
|
||||
.gs 38;5;81
|
||||
# Clojure
|
||||
.clj 38;5;41
|
||||
.cljs 38;5;41
|
||||
.cljc 38;5;41
|
||||
# Clojure gorilla REPL worksheet
|
||||
.cljw 38;5;41
|
||||
# Scala
|
||||
.scala 38;5;41
|
||||
# Dart
|
||||
.dart 38;5;51
|
||||
|
||||
# compiled {{{2
|
||||
#
|
||||
# assembly language
|
||||
.asm 38;5;81
|
||||
# LISP
|
||||
.cl 38;5;81
|
||||
.lisp 38;5;81
|
||||
# lua
|
||||
.lua 38;5;81
|
||||
# Moonscript
|
||||
.moon 38;5;81
|
||||
# C
|
||||
.c 38;5;81
|
||||
.C 38;5;81
|
||||
.h 38;5;110
|
||||
.H 38;5;110
|
||||
.tcc 38;5;110
|
||||
# C++
|
||||
.c++ 38;5;81
|
||||
.h++ 38;5;110
|
||||
.hpp 38;5;110
|
||||
.hxx 38;5;110
|
||||
.ii 38;5;110
|
||||
# method file for Objective C
|
||||
.M 38;5;110
|
||||
.m 38;5;110
|
||||
# Csharp
|
||||
.cc 38;5;81
|
||||
.cs 38;5;81
|
||||
.cp 38;5;81
|
||||
.cpp 38;5;81
|
||||
.cxx 38;5;81
|
||||
# Crystal
|
||||
.cr 38;5;81
|
||||
# Google golang
|
||||
.go 38;5;81
|
||||
# fortran
|
||||
.f 38;5;81
|
||||
.F 38;5;81
|
||||
.for 38;5;81
|
||||
.ftn 38;5;81
|
||||
.f90 38;5;81
|
||||
.F90 38;5;81
|
||||
.f95 38;5;81
|
||||
.F95 38;5;81
|
||||
.f03 38;5;81
|
||||
.F03 38;5;81
|
||||
.f08 38;5;81
|
||||
.F08 38;5;81
|
||||
# Nim
|
||||
.nim 38;5;81
|
||||
.nimble 38;5;81
|
||||
# pascal
|
||||
.s 38;5;110
|
||||
.S 38;5;110
|
||||
# Rust
|
||||
.rs 38;5;81
|
||||
# Swift
|
||||
.swift 38;5;219
|
||||
# ?
|
||||
.sx 38;5;81
|
||||
# Vala
|
||||
.vala 38;5;81
|
||||
.vapi 38;5;81
|
||||
# interface file in GHC - https://github.com/trapd00r/LS_COLORS/pull/9
|
||||
.hi 38;5;110
|
||||
# haskell
|
||||
.hs 38;5;81
|
||||
.lhs 38;5;81
|
||||
# agda
|
||||
.agda 38;5;81
|
||||
.lagda 38;5;81
|
||||
.lagda.tex 38;5;81
|
||||
.lagda.rst 38;5;81
|
||||
.lagda.md 38;5;81
|
||||
.agdai 38;5;110
|
||||
|
||||
# binaries {{{2
|
||||
# compiled apps for interpreted languages
|
||||
.pyc 38;5;240
|
||||
# }}}
|
||||
# orchestration {{{2
|
||||
.tf 38;5;168
|
||||
.tfstate 38;5;168
|
||||
.tfvars 38;5;168
|
||||
# orchestration 2}}}
|
||||
# html {{{2
|
||||
.css 38;5;125;1
|
||||
.less 38;5;125;1
|
||||
.sass 38;5;125;1
|
||||
.scss 38;5;125;1
|
||||
.htm 38;5;125;1
|
||||
.html 38;5;125;1
|
||||
.jhtm 38;5;125;1
|
||||
.mht 38;5;125;1
|
||||
.eml 38;5;125;1
|
||||
.mustache 38;5;125;1
|
||||
.httt 38;5;125;1
|
||||
# }}}
|
||||
# java {{{2
|
||||
.coffee 38;5;074;1
|
||||
.java 38;5;074;1
|
||||
.js 38;5;074;1
|
||||
.mjs 38;5;074;1
|
||||
.jsm 38;5;074;1
|
||||
.jsm 38;5;074;1
|
||||
.jsp 38;5;074;1
|
||||
# }}}
|
||||
# php {{{2
|
||||
.php 38;5;81
|
||||
# CakePHP view scripts and helpers
|
||||
.ctp 38;5;81
|
||||
# Twig template engine
|
||||
.twig 38;5;81
|
||||
# }}}
|
||||
# vb/a {{{2
|
||||
.vb 38;5;81
|
||||
.vba 38;5;81
|
||||
.vbs 38;5;81
|
||||
# 2}}}
|
||||
# Build stuff {{{2
|
||||
*Dockerfile 38;5;155
|
||||
.dockerignore 38;5;240
|
||||
*Makefile 38;5;155
|
||||
*MANIFEST 38;5;243
|
||||
*pm_to_blib 38;5;240
|
||||
# Functional Configuration
|
||||
.nix 38;5;155
|
||||
.dhall 38;5;178
|
||||
# ruby rake
|
||||
.rake 38;5;155
|
||||
# automake
|
||||
.am 38;5;242
|
||||
.in 38;5;242
|
||||
.hin 38;5;242
|
||||
.scan 38;5;242
|
||||
.m4 38;5;242
|
||||
.old 38;5;242
|
||||
.out 38;5;242
|
||||
.SKIP 38;5;244
|
||||
# }}}
|
||||
# patch files {{{2
|
||||
.diff 48;5;197;38;5;232
|
||||
.patch 48;5;197;38;5;232;1
|
||||
#}}}
|
||||
# graphics {{{1
|
||||
.bmp 38;5;97
|
||||
.dicom 38;5;97
|
||||
.tiff 38;5;97
|
||||
.tif 38;5;97
|
||||
.TIFF 38;5;97
|
||||
.cdr 38;5;97
|
||||
.flif 38;5;97
|
||||
.gif 38;5;97
|
||||
.ico 38;5;97
|
||||
.jpeg 38;5;97
|
||||
.JPG 38;5;97
|
||||
.jpg 38;5;97
|
||||
.nth 38;5;97
|
||||
.png 38;5;97
|
||||
.psd 38;5;97
|
||||
.xpm 38;5;97
|
||||
.webp 38;5;97
|
||||
# }}}
|
||||
# vector {{{1
|
||||
.ai 38;5;99
|
||||
.eps 38;5;99
|
||||
.epsf 38;5;99
|
||||
.drw 38;5;99
|
||||
.ps 38;5;99
|
||||
.svg 38;5;99
|
||||
# }}}
|
||||
# video {{{1
|
||||
.avi 38;5;114
|
||||
.divx 38;5;114
|
||||
.IFO 38;5;114
|
||||
.m2v 38;5;114
|
||||
.m4v 38;5;114
|
||||
.mkv 38;5;114
|
||||
.MOV 38;5;114
|
||||
.mov 38;5;114
|
||||
.mp4 38;5;114
|
||||
.mpeg 38;5;114
|
||||
.mpg 38;5;114
|
||||
.ogm 38;5;114
|
||||
.rmvb 38;5;114
|
||||
.sample 38;5;114
|
||||
.wmv 38;5;114
|
||||
# mobile/streaming {{{2
|
||||
.3g2 38;5;115
|
||||
.3gp 38;5;115
|
||||
.gp3 38;5;115
|
||||
.webm 38;5;115
|
||||
.gp4 38;5;115
|
||||
.asf 38;5;115
|
||||
.flv 38;5;115
|
||||
.ts 38;5;115
|
||||
.ogv 38;5;115
|
||||
.f4v 38;5;115
|
||||
# }}}
|
||||
# lossless {{{2
|
||||
.VOB 38;5;115;1
|
||||
.vob 38;5;115;1
|
||||
# }}}
|
||||
# audio {{{1
|
||||
.3ga 38;5;137;1
|
||||
.S3M 38;5;137;1
|
||||
.aac 38;5;137;1
|
||||
.au 38;5;137;1
|
||||
.dat 38;5;137;1
|
||||
.dts 38;5;137;1
|
||||
.fcm 38;5;137;1
|
||||
.m4a 38;5;137;1
|
||||
.mid 38;5;137;1
|
||||
.midi 38;5;137;1
|
||||
.mod 38;5;137;1
|
||||
.mp3 38;5;137;1
|
||||
.mp4a 38;5;137;1
|
||||
.oga 38;5;137;1
|
||||
.ogg 38;5;137;1
|
||||
.opus 38;5;137;1
|
||||
.s3m 38;5;137;1
|
||||
.sid 38;5;137;1
|
||||
.wma 38;5;137;1
|
||||
# lossless
|
||||
.ape 38;5;136;1
|
||||
.aiff 38;5;136;1
|
||||
.cda 38;5;136;1
|
||||
.flac 38;5;136;1
|
||||
.alac 38;5;136;1
|
||||
.midi 38;5;136;1
|
||||
.pcm 38;5;136;1
|
||||
.wav 38;5;136;1
|
||||
.wv 38;5;136;1
|
||||
.wvc 38;5;136;1
|
||||
|
||||
# }}}
|
||||
# fonts {{{1
|
||||
.afm 38;5;66
|
||||
.fon 38;5;66
|
||||
.fnt 38;5;66
|
||||
.pfb 38;5;66
|
||||
.pfm 38;5;66
|
||||
.ttf 38;5;66
|
||||
.otf 38;5;66
|
||||
# postscript fonts
|
||||
.PFA 38;5;66
|
||||
.pfa 38;5;66
|
||||
# }}}
|
||||
# archives {{{1
|
||||
.7z 38;5;40
|
||||
.a 38;5;40
|
||||
.arj 38;5;40
|
||||
.bz2 38;5;40
|
||||
.cpio 38;5;40
|
||||
.gz 38;5;40
|
||||
.lrz 38;5;40
|
||||
.lz 38;5;40
|
||||
.lzma 38;5;40
|
||||
.lzo 38;5;40
|
||||
.rar 38;5;40
|
||||
.s7z 38;5;40
|
||||
.sz 38;5;40
|
||||
.tar 38;5;40
|
||||
.tgz 38;5;40
|
||||
.xz 38;5;40
|
||||
.z 38;5;40
|
||||
.Z 38;5;40
|
||||
.zip 38;5;40
|
||||
.zipx 38;5;40
|
||||
.zoo 38;5;40
|
||||
.zpaq 38;5;40
|
||||
.zz 38;5;40
|
||||
# packaged apps {{{2
|
||||
.apk 38;5;215
|
||||
.deb 38;5;215
|
||||
.rpm 38;5;215
|
||||
.jad 38;5;215
|
||||
.jar 38;5;215
|
||||
.cab 38;5;215
|
||||
.pak 38;5;215
|
||||
.pk3 38;5;215
|
||||
.vdf 38;5;215
|
||||
.vpk 38;5;215
|
||||
.bsp 38;5;215
|
||||
.dmg 38;5;215
|
||||
# }}}
|
||||
# segments from 0 to three digits after first extension letter {{{2
|
||||
.r[0-9]{0,2} 38;5;239
|
||||
.zx[0-9]{0,2} 38;5;239
|
||||
.z[0-9]{0,2} 38;5;239
|
||||
# partial files
|
||||
.part 38;5;239
|
||||
# }}}
|
||||
# partition images {{{2
|
||||
.dmg 38;5;124
|
||||
.iso 38;5;124
|
||||
.bin 38;5;124
|
||||
.nrg 38;5;124
|
||||
.qcow 38;5;124
|
||||
.sparseimage 38;5;124
|
||||
.toast 38;5;124
|
||||
.vcd 38;5;124
|
||||
.vmdk 38;5;124
|
||||
# }}}
|
||||
# databases {{{2
|
||||
.accdb 38;5;60
|
||||
.accde 38;5;60
|
||||
.accdr 38;5;60
|
||||
.accdt 38;5;60
|
||||
.db 38;5;60
|
||||
.fmp12 38;5;60
|
||||
.fp7 38;5;60
|
||||
.localstorage 38;5;60
|
||||
.mdb 38;5;60
|
||||
.mde 38;5;60
|
||||
.sqlite 38;5;60
|
||||
.typelib 38;5;60
|
||||
# NetCDF database
|
||||
.nc 38;5;60
|
||||
# }}}
|
||||
# tempfiles {{{1
|
||||
# undo files
|
||||
.pacnew 38;5;33
|
||||
.un~ 38;5;241
|
||||
.orig 38;5;241
|
||||
# backups
|
||||
.BUP 38;5;241
|
||||
.bak 38;5;241
|
||||
.o 38;5;241 # *nix Object file (shared libraries, core dumps etc)
|
||||
*core 38;5;241 # Linux user core dump file (from /proc/sys/kernel/core_pattern)
|
||||
.rlib 38;5;241 # Static rust library
|
||||
# temporary files
|
||||
.swp 38;5;244
|
||||
.swo 38;5;244
|
||||
.tmp 38;5;244
|
||||
.sassc 38;5;244
|
||||
# state files
|
||||
.pid 38;5;248
|
||||
.state 38;5;248
|
||||
*lockfile 38;5;248
|
||||
*lock 38;5;248
|
||||
# error logs
|
||||
.err 38;5;160;1
|
||||
.error 38;5;160;1
|
||||
.stderr 38;5;160;1
|
||||
# state dumps
|
||||
.aria2 38;5;241
|
||||
.dump 38;5;241
|
||||
.stackdump 38;5;241
|
||||
.zcompdump 38;5;241
|
||||
.zwc 38;5;241
|
||||
# tcpdump, network traffic capture
|
||||
.pcap 38;5;29
|
||||
.cap 38;5;29
|
||||
.dmp 38;5;29
|
||||
# macOS
|
||||
.DS_Store 38;5;239
|
||||
.localized 38;5;239
|
||||
.CFUserTextEncoding 38;5;239
|
||||
# }}}
|
||||
# hosts {{{1
|
||||
# /etc/hosts.{deny,allow}
|
||||
.allow 38;5;112
|
||||
.deny 38;5;196
|
||||
# }}}
|
||||
# systemd {{{1
|
||||
# http://www.freedesktop.org/software/systemd/man/systemd.unit.html
|
||||
.service 38;5;45
|
||||
*@.service 38;5;45
|
||||
.socket 38;5;45
|
||||
.swap 38;5;45
|
||||
.device 38;5;45
|
||||
.mount 38;5;45
|
||||
.automount 38;5;45
|
||||
.target 38;5;45
|
||||
.path 38;5;45
|
||||
.timer 38;5;45
|
||||
.snapshot 38;5;45
|
||||
# }}}
|
||||
# metadata {{{1
|
||||
.application 38;5;116
|
||||
.cue 38;5;116
|
||||
.description 38;5;116
|
||||
.directory 38;5;116
|
||||
.m3u 38;5;116
|
||||
.m3u8 38;5;116
|
||||
.md5 38;5;116
|
||||
.properties 38;5;116
|
||||
.sfv 38;5;116
|
||||
.srt 38;5;116
|
||||
.sub 38;5;116
|
||||
.theme 38;5;116
|
||||
.torrent 38;5;116
|
||||
.urlview 38;5;116
|
||||
# }}}
|
||||
# encrypted data {{{1
|
||||
.sec 38;5;160;3;8
|
||||
.pub 38;5;42;3
|
||||
.priv 38;5;161;3
|
||||
.key 38;5;162;3
|
||||
.kbx 38;5;72;3
|
||||
|
||||
.asc 38;5;72;3;28
|
||||
.bfe 38;5;72;3
|
||||
.enc 38;5;72;3
|
||||
.gpg 38;5;72;3
|
||||
.signature 38;5;72;3
|
||||
.sig 38;5;72;3
|
||||
.p12 38;5;72;3
|
||||
.pem 38;5;72;3
|
||||
.pgp 38;5;72;3
|
||||
.asc 38;5;72;3
|
||||
.enc 38;5;72;3
|
||||
.sig 38;5;72;3
|
||||
.p7s 38;5;72;3
|
||||
.ppk 38;5;72;3
|
||||
*id_dsa 38;5;72;3
|
||||
*id_rsa 38;5;72;3
|
||||
*id_ecdsa 38;5;72;3
|
||||
*id_ed25519 38;5;72;3
|
||||
# 1}}}
|
||||
# emulators {{{1
|
||||
.32x 38;5;213
|
||||
.cdi 38;5;213
|
||||
.fm2 38;5;213
|
||||
.rom 38;5;213
|
||||
.sav 38;5;213
|
||||
.st 38;5;213
|
||||
# atari
|
||||
.a00 38;5;213
|
||||
.a52 38;5;213
|
||||
.A64 38;5;213
|
||||
.a64 38;5;213
|
||||
.a78 38;5;213
|
||||
.adf 38;5;213
|
||||
.atr 38;5;213
|
||||
# nintendo
|
||||
.gb 38;5;213
|
||||
.gba 38;5;213
|
||||
.gbc 38;5;213
|
||||
.gel 38;5;213
|
||||
.gg 38;5;213
|
||||
.ggl 38;5;213
|
||||
.ipk 38;5;213 # Nintendo (DS Packed Images)
|
||||
.j64 38;5;213
|
||||
.nds 38;5;213
|
||||
.nes 38;5;213
|
||||
# Sega
|
||||
.sms 38;5;213
|
||||
# }}}
|
||||
# unsorted {{{1
|
||||
#
|
||||
# Portable Object Translation for GNU Gettext
|
||||
.pot 38;5;7
|
||||
# CAD files for printed circuit boards
|
||||
.pcb 38;5;7
|
||||
# groff (rendering app for texinfo)
|
||||
.mm 38;5;7
|
||||
# perldoc
|
||||
.pod 38;5;7
|
||||
# GIMP files
|
||||
.gbr 38;5;7
|
||||
.scm 38;5;7
|
||||
.xcf 38;5;7
|
||||
# printer spool file
|
||||
.spl 38;5;7
|
||||
# RStudio project file
|
||||
.Rproj 38;5;11
|
||||
# Nokia Symbian OS files
|
||||
.sis 38;5;7
|
||||
|
||||
.1p 38;5;7
|
||||
.3p 38;5;7
|
||||
.cnc 38;5;7
|
||||
.def 38;5;7
|
||||
.ex 38;5;7
|
||||
.example 38;5;7
|
||||
.feature 38;5;7
|
||||
.ger 38;5;7
|
||||
.map 38;5;7
|
||||
.mf 38;5;7
|
||||
.mfasl 38;5;7
|
||||
.mi 38;5;7
|
||||
.mtx 38;5;7
|
||||
.pc 38;5;7
|
||||
.pi 38;5;7
|
||||
.plt 38;5;7
|
||||
#.pm 38;5;7
|
||||
.rdf 38;5;7
|
||||
.ru 38;5;7
|
||||
.sch 38;5;7
|
||||
.sty 38;5;7
|
||||
.sug 38;5;7
|
||||
.t 38;5;7
|
||||
.tdy 38;5;7
|
||||
.tfm 38;5;7
|
||||
.tfnt 38;5;7
|
||||
.tg 38;5;7
|
||||
.vcard 38;5;7
|
||||
.vcf 38;5;7
|
||||
.xln 38;5;7
|
||||
# AppCode files
|
||||
.iml 38;5;166
|
||||
# Xcode files
|
||||
.xcconfig 1
|
||||
.entitlements 1
|
||||
.strings 1
|
||||
.storyboard 38;5;196
|
||||
.xcsettings 1
|
||||
.xib 38;5;208
|
||||
# }}}
|
||||
# termcap {{{1
|
||||
TERM ansi
|
||||
TERM color-xterm
|
||||
TERM con132x25
|
||||
TERM con132x30
|
||||
TERM con132x43
|
||||
TERM con132x60
|
||||
TERM con80x25
|
||||
TERM con80x28
|
||||
TERM con80x30
|
||||
TERM con80x43
|
||||
TERM con80x50
|
||||
TERM con80x60
|
||||
TERM cons25
|
||||
TERM console
|
||||
TERM cygwin
|
||||
TERM dtterm
|
||||
TERM Eterm
|
||||
TERM eterm-color
|
||||
TERM gnome
|
||||
TERM gnome-256color
|
||||
TERM jfbterm
|
||||
TERM konsole
|
||||
TERM kterm
|
||||
TERM linux
|
||||
TERM linux-c
|
||||
TERM mach-color
|
||||
TERM mlterm
|
||||
TERM putty
|
||||
TERM rxvt
|
||||
TERM rxvt-256color
|
||||
TERM rxvt-cygwin
|
||||
TERM rxvt-cygwin-native
|
||||
TERM rxvt-unicode
|
||||
TERM rxvt-unicode-256color
|
||||
TERM rxvt-unicode256
|
||||
TERM screen
|
||||
TERM screen-256color
|
||||
TERM screen-256color-bce
|
||||
TERM screen-bce
|
||||
TERM screen-w
|
||||
TERM screen.linux
|
||||
TERM screen.rxvt
|
||||
TERM terminator
|
||||
TERM vt100
|
||||
TERM xterm
|
||||
TERM xterm-16color
|
||||
TERM xterm-256color
|
||||
TERM xterm-88color
|
||||
TERM xterm-color
|
||||
TERM xterm-debian
|
||||
TERM xterm-kitty
|
||||
# }}}
|
||||
|
||||
|
||||
# vim: ft=dircolors:fdm=marker:et:sw=2:
|
||||
@@ -15,8 +15,7 @@ export QT_STYLE_OVERRIDE=kvantum
|
||||
export QT_AUTO_SCREEN_SCALE_FACTOR=1
|
||||
|
||||
export DOTFILES="$HOME/.dotfiles"
|
||||
export EDITOR="emacs -nw"
|
||||
export VISUAL="emacs"
|
||||
export EDITOR=nano
|
||||
|
||||
# SSH socket
|
||||
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gcr/ssh"
|
||||
@@ -47,6 +46,8 @@ appendpath() {
|
||||
esac
|
||||
}
|
||||
|
||||
appendpath "/home/linuxbrew/.linuxbrew/bin"
|
||||
appendpath "$HOME/.local/bin"
|
||||
appendpath "$GOBIN"
|
||||
appendpath "$HOME/.cargo/bin"
|
||||
unset appendpath
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
# for a list of all available themes
|
||||
|
||||
# Theme
|
||||
--theme="Coldark-Dark"
|
||||
--theme="Catppuccin Mocha"
|
||||
|
||||
# Style
|
||||
--style="header,changes,numbers"
|
||||
|
||||
1
emacs/.emacs.d/.gitignore
vendored
1
emacs/.emacs.d/.gitignore
vendored
@@ -19,7 +19,6 @@ transient/
|
||||
/.extension/**
|
||||
url/**
|
||||
**/*.bak
|
||||
**/recentf
|
||||
|
||||
# Org-mode
|
||||
.org-id-locations
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
;;=====================================================================================
|
||||
;; Define loader functions
|
||||
;;=====================================================================================
|
||||
(defconst fscotto/modules-dir
|
||||
(expand-file-name "lisp" user-emacs-directory))
|
||||
|
||||
(defun fscotto/load-module (module)
|
||||
"Load a MODULE from symbol."
|
||||
(let* ((module-name (symbol-name module))
|
||||
(path (expand-file-name
|
||||
(concat (replace-regexp-in-string "/" "/" module-name)
|
||||
".el")
|
||||
fscotto/modules-dir)))
|
||||
(unless (file-exists-p path)
|
||||
(error "Module not found: %s" path))
|
||||
(load path nil 'nomessage)))
|
||||
|
||||
(defun fscotto/load-modules (&rest modules)
|
||||
"Load MODULES."
|
||||
(mapc #'fscotto/load-module modules))
|
||||
|
||||
(defvar fscotto/emacs-profile
|
||||
(or (getenv "EMACS_PROFILE") "full"))
|
||||
@@ -1,6 +1,26 @@
|
||||
(message "Welcome to Emacs")
|
||||
(message "Loading user configuration...")
|
||||
(message "Emacs profile: %s" fscotto/emacs-profile)
|
||||
|
||||
;;=====================================================================================
|
||||
;; Define loader functions
|
||||
;;=====================================================================================
|
||||
(defconst fscotto/modules-dir
|
||||
(expand-file-name "lisp" user-emacs-directory))
|
||||
|
||||
(defun fscotto/load-module (module)
|
||||
"Load a MODULE from symbol."
|
||||
(let* ((module-name (symbol-name module))
|
||||
(path (expand-file-name
|
||||
(concat (replace-regexp-in-string "/" "/" module-name)
|
||||
".el")
|
||||
fscotto/modules-dir)))
|
||||
(unless (file-exists-p path)
|
||||
(error "Module not found: %s" path))
|
||||
(load path nil 'nomessage)))
|
||||
|
||||
(defun fscotto/load-modules (&rest modules)
|
||||
"Load MODULES."
|
||||
(mapc #'fscotto/load-module modules))
|
||||
|
||||
;;=====================================================================================
|
||||
;; Load modules
|
||||
@@ -19,20 +39,16 @@
|
||||
'tools/project
|
||||
'tools/lsp
|
||||
'tools/dap
|
||||
;; 'tools/treesitter
|
||||
'tools/treesitter
|
||||
|
||||
;; Languages
|
||||
'lang/c
|
||||
'lang/docker
|
||||
'lang/golang
|
||||
'lang/json
|
||||
'lang/markdown
|
||||
'lang/org
|
||||
'lang/shell
|
||||
'lang/yaml
|
||||
|
||||
;; Misc
|
||||
'misc/dashboard
|
||||
'misc/custom-functions
|
||||
'misc/doom-modeline
|
||||
'misc/which-key
|
||||
|
||||
@@ -1,22 +1,10 @@
|
||||
;;; core-ui.el -*- lexical-binding: t; -*-
|
||||
;;;; core-ui.el -*-
|
||||
|
||||
;; Load default theme
|
||||
(use-package sublime-themes
|
||||
:ensure t)
|
||||
|
||||
(use-package soothe-theme
|
||||
:ensure t)
|
||||
|
||||
(use-package nordic-night-theme
|
||||
:ensure t)
|
||||
|
||||
(use-package timu-caribbean-theme
|
||||
:ensure t)
|
||||
|
||||
(load-theme 'nordic-night t)
|
||||
(load-theme 'wombat)
|
||||
|
||||
;; Setting default font
|
||||
(set-frame-font "UbuntuSansMono Nerd Font 16" nil t)
|
||||
(set-frame-font "Iosevka Nerd Font 14" nil t)
|
||||
|
||||
;; Remove toolbar
|
||||
(tool-bar-mode -1)
|
||||
@@ -62,6 +50,9 @@
|
||||
;; Enable line numbers in the configuration mode only
|
||||
(add-hook 'conf-mode-hook 'display-line-numbers-mode)
|
||||
|
||||
;; Setting default directory for Org files
|
||||
(setq org-directory "~/Remotes/pCloud/Org")
|
||||
|
||||
;; Highlight keywords to remember the activity when coding.
|
||||
(use-package hl-todo
|
||||
:ensure t
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
;;; json.el -*- lexical-binding: t -*-
|
||||
(use-package json-mode
|
||||
:ensure t)
|
||||
|
||||
(provide 'json)
|
||||
|
||||
;;; json.el ends here
|
||||
@@ -1,8 +0,0 @@
|
||||
;;; markdown.el -*- lexical-binding: t; -*-
|
||||
(use-package markdown-mode
|
||||
:ensure t
|
||||
:mode ("README\\.md\\'" . gfm-mode)
|
||||
:init (setq markdown-command "multimarkdown"))
|
||||
|
||||
(provide 'markdown)
|
||||
;;; markdown.el ends here
|
||||
@@ -1,46 +0,0 @@
|
||||
;;; org.el -*- lexical-binding: t; -*-
|
||||
|
||||
(use-package htmlize
|
||||
:ensure t)
|
||||
|
||||
(use-package org
|
||||
:init
|
||||
(setq org-clock-mode-line-total 'today
|
||||
org-fontify-quote-and-verse-blocks t
|
||||
org-indent-mode t
|
||||
org-return-follows-link t
|
||||
org-startup-folded 'content
|
||||
org-todo-keywords '((sequence "🆕(t)" "▶️(s)" "⏳(w)" "🔎(p)" "|" "✅(d)" "🗑(c)" "👨(g)")))
|
||||
:config
|
||||
(add-hook 'org-mode-hook 'org-indent-mode)
|
||||
(add-hook 'org-mode-hook 'flyspell-mode))
|
||||
|
||||
(use-package org-bullets
|
||||
:ensure t
|
||||
:init
|
||||
(setq org-bullets-bullet-list '("❯" "❯❯" "❯❯❯" "❯❯❯❯" "❯❯❯❯❯"))
|
||||
:config
|
||||
(add-hook 'org-mode-hook 'org-bullets-mode))
|
||||
|
||||
(use-package org-re-reveal
|
||||
:ensure t
|
||||
:init
|
||||
(setq org-re-reveal-transition 'none
|
||||
org-re-reveal-theme "dracula"))
|
||||
|
||||
(use-package ob-mermaid
|
||||
:ensure t
|
||||
:init
|
||||
(setq ob-mermaid-cli-path "mmdc")
|
||||
(org-babel-do-load-languages
|
||||
'org-babel-load-languages
|
||||
'((mermaid . t)
|
||||
(scheme . t))))
|
||||
|
||||
|
||||
;; Setting default directory for Org files
|
||||
(setq org-directory "~/Remotes/pCloud/Org")
|
||||
|
||||
(provide 'org)
|
||||
|
||||
;;; org.el ends here
|
||||
@@ -1,17 +0,0 @@
|
||||
;;; dashboard.el --- Startup dashboard -*- lexical-binding: t; -*-
|
||||
|
||||
(use-package dashboard
|
||||
:ensure t
|
||||
:init
|
||||
(setq dashboard-startup-banner 'logo
|
||||
dashboard-center-content t
|
||||
dashboard-set-heading-icons t
|
||||
dashboard-set-file-icons t
|
||||
dashboard-items '((recents . 8)
|
||||
(projects . 5)))
|
||||
:config
|
||||
(dashboard-setup-startup-hook))
|
||||
|
||||
(provide 'dashboard)
|
||||
|
||||
;;; misc-dashboard.el ends here
|
||||
@@ -27,37 +27,6 @@
|
||||
:config
|
||||
(setq flycheck-check-syntax-automatically '(save mode-enabled)))
|
||||
|
||||
;; Snippets
|
||||
(use-package yasnippet
|
||||
:ensure t
|
||||
:config
|
||||
(setq yas/root-directory
|
||||
(list "~/.emacs.d/snippets") yas-indent-line 'fixed)
|
||||
(yas-global-mode))
|
||||
|
||||
(use-package orderless
|
||||
:ensure t
|
||||
:custom
|
||||
(completion-styles '(orderless basic))
|
||||
(completion-category-overrides '((file (styles partial-completion))))
|
||||
(completion-pcm-leading-wildcard t)
|
||||
:config
|
||||
(setq ivy-re-builders-alist '((t . orderless-ivy-re-builder)))
|
||||
(add-to-list 'ivy-highlight-functions-alist '(orderless-ivy-re-builder . orderless-ivy-highlight)))
|
||||
|
||||
(defun just-one-face (fn &rest args)
|
||||
(let ((orderless-match-faces [completions-common-part]))
|
||||
(apply fn args)))
|
||||
|
||||
(advice-add 'company-capf--candidates :around #'just-one-face)
|
||||
|
||||
(use-package smartparens
|
||||
:ensure smartparens ;; install the package
|
||||
:hook (prog-mode text-mode markdown-mode) ;; add `smartparens-mode` to these hooks
|
||||
:config
|
||||
;; load default config
|
||||
(require 'smartparens-config))
|
||||
|
||||
(provide 'completion)
|
||||
|
||||
;;; completion.el ends here
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
:defer 1
|
||||
:init
|
||||
;; Root detection
|
||||
(setq projectile-project-search-path '("~/Projects" "~/Work" "~/Progetti"))
|
||||
(setq projectile-project-search-path '("~/Projects" "~/Work"))
|
||||
(setq projectile-completion-system 'ivy)
|
||||
:config
|
||||
;; Performance
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
mbsync -a & pid1=$!
|
||||
mbsync Gmail & pid1=$!
|
||||
wait $pid1
|
||||
|
||||
mu index
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
func main() {
|
||||
$0
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
fmt.Printf("%v\n", $0)
|
||||
@@ -1,23 +0,0 @@
|
||||
func Test$0 {
|
||||
tests := []struct {
|
||||
name string
|
||||
req string
|
||||
expected string
|
||||
}{
|
||||
{
|
||||
name: "happy path",
|
||||
req: "answer to life, the universe and everything"
|
||||
expected: "42"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
actual := foo(t, tt.req)
|
||||
assertEquals(t, tt.want, expected)
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
#name : author
|
||||
# --
|
||||
@author <a href="mailto:torstein@skybert.net">Torstein Krause Johansen</a>$0
|
||||
@@ -1,6 +0,0 @@
|
||||
#name : debug
|
||||
# --
|
||||
if (mLogger.isDebugEnabled()) {
|
||||
mLogger.debug(String.format("${1:result}=%s", ${2:result}));
|
||||
}
|
||||
$0
|
||||
@@ -1,31 +0,0 @@
|
||||
#name : dwmain
|
||||
# --
|
||||
package ${1:net.skybert.dw};
|
||||
|
||||
import io.dropwizard.Application;
|
||||
import io.dropwizard.assets.AssetsBundle;
|
||||
import io.dropwizard.configuration.SubstitutingSourceProvider;
|
||||
import io.dropwizard.jetty.ConnectorFactory;
|
||||
import io.dropwizard.jetty.HttpConnectorFactory;
|
||||
import io.dropwizard.lifecycle.Managed;
|
||||
import io.dropwizard.server.DefaultServerFactory;
|
||||
import io.dropwizard.setup.Bootstrap;
|
||||
import io.dropwizard.setup.Environment;
|
||||
|
||||
/**
|
||||
* Main
|
||||
*/
|
||||
public class Main extends Application<${2:SkybertConf}> {
|
||||
|
||||
public static void main(final String[] args) throws Exception {
|
||||
new Main().run(args);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run(
|
||||
final $2 pConfiguration,
|
||||
final Environment pEnvironment)
|
||||
throws Exception {
|
||||
$0
|
||||
}
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
#name : new method/function
|
||||
# --
|
||||
${1:public} ${2:void} ${3:update}(final ${4:String} ${5:pName}) {
|
||||
$0
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
#name : for (...; ...; ...) { ... }
|
||||
# --
|
||||
for (${1:Object} ${downcase-word 1} ; ${2:list}) {
|
||||
$0
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
#name : for loop with index
|
||||
# --
|
||||
for (int ${1:i} = 0; $1 < ${2:args.length}; $1${3:++}) {
|
||||
$0
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
#name : get/set/member variable
|
||||
# --
|
||||
private ${1:String} ${2:name};
|
||||
|
||||
public void set${2:$(capitalize text)}(final $1 p${2:$(capitalize text)}) {
|
||||
$2 = p${2:$(capitalize text)};
|
||||
}
|
||||
|
||||
public $1 get${2:$(capitalize text)}() {
|
||||
return $2;
|
||||
}
|
||||
$0
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
#name : if
|
||||
# --
|
||||
if (${1:result} ${2:!=} ${3:null}) {
|
||||
$0
|
||||
}
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
#name : static import of isBlank
|
||||
# --
|
||||
import static org.apache.commons.lang.StringUtils.isBlank;
|
||||
$0
|
||||
@@ -1,21 +0,0 @@
|
||||
#name : junitwrapperfns
|
||||
# --
|
||||
private void assertTrue(final String pMessage, final boolean pConditition) {
|
||||
Assertions.assertTrue(pConditition, pMessage);
|
||||
}
|
||||
|
||||
private void assertFalse(final String pMessage, final boolean pConditition) {
|
||||
Assertions.assertFalse(pConditition, pMessage);
|
||||
}
|
||||
|
||||
private void assertNotNull(final String pMessage, final Object pActual) {
|
||||
Assertions.assertNotNull(pActual, pMessage);
|
||||
}
|
||||
|
||||
private void assertNull(final String pMessage, final Object pActual) {
|
||||
Assertions.assertNull(pActual, pMessage);
|
||||
}
|
||||
|
||||
private void assertEquals(final String pMessage, final Object pExpected, final Object pActual) {
|
||||
Assertions.assertEquals(pExpected, pActual, pMessage);
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
#name : main
|
||||
# --
|
||||
public static void main(String[] args) {
|
||||
$0
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
#name : np
|
||||
# --
|
||||
// NOPMD
|
||||
@@ -1,3 +0,0 @@
|
||||
#name : get ObjectLoader
|
||||
# --
|
||||
$0ObjectLoader objectLoader = IOAPI.getAPI().getObjectLoader();
|
||||
@@ -1,6 +0,0 @@
|
||||
#name : req
|
||||
# --
|
||||
HttpRequest request = HttpRequest.newBuilder()
|
||||
.uri(URI.create($0))
|
||||
.timeout(Duration.ofMillis(getResponseTimeout()))
|
||||
.build();
|
||||
@@ -1,3 +0,0 @@
|
||||
#name : res
|
||||
# --
|
||||
HttpResponse<String> response = mHttpClient.send(request, ofString());$0
|
||||
@@ -1,3 +0,0 @@
|
||||
#name : sf
|
||||
# --
|
||||
String.format("%s", $0)
|
||||
@@ -1,3 +0,0 @@
|
||||
#name : System.out.println
|
||||
# --
|
||||
System.out.println($0);
|
||||
@@ -1,4 +0,0 @@
|
||||
@Test
|
||||
void ${1:can}() throws Exception {
|
||||
$0
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
#name : try, catch & finally
|
||||
# --
|
||||
try {
|
||||
$0
|
||||
}
|
||||
catch (${1:Exception} ${2:e}) {
|
||||
mLogger.error($2);
|
||||
}
|
||||
finally {
|
||||
|
||||
}
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
#name : try & catch
|
||||
# --
|
||||
try {
|
||||
$0
|
||||
}
|
||||
catch (${1:Exception} ${2:e}) {
|
||||
mLogger.error($2);
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
#name : new array
|
||||
# --
|
||||
var ${1:myArray} = new Array();
|
||||
$0
|
||||
@@ -1,6 +0,0 @@
|
||||
#name : function
|
||||
# --
|
||||
function ${1:test}(${2:pValue}) {
|
||||
$0
|
||||
}
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
#name : for (...; ...; ...) { ... }
|
||||
# --
|
||||
for (var ${1:i} = 0; $1 < ${2:args.length}; $1${3:++}) {
|
||||
$0
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
#name : if
|
||||
# --
|
||||
if (${1:s} == ${2:undefined}) {
|
||||
$0
|
||||
}
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
#name : log
|
||||
# --
|
||||
console.log("$0");
|
||||
@@ -1,3 +0,0 @@
|
||||
#name : a
|
||||
# --
|
||||
[${1}](${2})${0}
|
||||
@@ -1,9 +0,0 @@
|
||||
#name : img snippet
|
||||
# --
|
||||
|
||||
<img
|
||||
class="centered"
|
||||
src="${1:foo.png}"
|
||||
alt="${2:alt img text}"
|
||||
/>
|
||||
$0
|
||||
@@ -1,3 +0,0 @@
|
||||
# name : me
|
||||
# --
|
||||
[@skybert](https://skybert.net) ${1:says:}$0
|
||||
@@ -1,17 +0,0 @@
|
||||
#name : pelican article
|
||||
# --
|
||||
title: ${1:`(s-replace "-" " " (file-name-base (buffer-file-name)))`}
|
||||
date: ${2:`(format-time-string "%Y-%m-%d" (current-time))`}
|
||||
category: ${3:`(file-name-nondirectory
|
||||
(substring
|
||||
(file-name-directory (buffer-file-name))
|
||||
0
|
||||
(- (length (file-name-directory (buffer-file-name))) 1)
|
||||
))`}
|
||||
tags: ${4:`(file-name-nondirectory
|
||||
(substring
|
||||
(file-name-directory (buffer-file-name))
|
||||
0
|
||||
(- (length (file-name-directory (buffer-file-name))) 1)
|
||||
))`}
|
||||
$0
|
||||
@@ -1,6 +0,0 @@
|
||||
#name : src code snippet
|
||||
# --
|
||||
|
||||
\`\`\`${1:text}
|
||||
$0
|
||||
\`\`\`
|
||||
@@ -1,4 +0,0 @@
|
||||
#name : strong element
|
||||
# --
|
||||
|
||||
<strong>${1:text}</strong>$0
|
||||
@@ -1,3 +0,0 @@
|
||||
#name: cdata
|
||||
# --
|
||||
<![CDATA[$0]]>
|
||||
@@ -1,8 +0,0 @@
|
||||
#name : cha
|
||||
# --
|
||||
<chapter xml:id="t_${1:$(replace-regexp-in-string " " "_" (downcase text))}">
|
||||
<title>${1:My Title}</title>
|
||||
<para>
|
||||
$0
|
||||
</para>
|
||||
</chapter>
|
||||
@@ -1,7 +0,0 @@
|
||||
#name : dep
|
||||
# --
|
||||
<dependency>
|
||||
<groupId>$1</groupId>
|
||||
<artifactId>$2</artifactId>
|
||||
<version>$0</version>
|
||||
</dependency>
|
||||
@@ -1,10 +0,0 @@
|
||||
#name : diary
|
||||
# --
|
||||
<!--#include virtual="/ssi/header.shtml" -->
|
||||
<h1>$1</h1>
|
||||
<div id="main">
|
||||
<p>
|
||||
$0
|
||||
</p>
|
||||
</div>
|
||||
<!--#include virtual="/ssi/footer.shtml" -->
|
||||
@@ -1,6 +0,0 @@
|
||||
#name : exclusion
|
||||
# --
|
||||
<exclusion>
|
||||
<groupId>$1</groupId>
|
||||
<artifactId>$2</artifactId>
|
||||
</exclusion>$0
|
||||
@@ -1,8 +0,0 @@
|
||||
#name : exclusions
|
||||
# --
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>$1</groupId>
|
||||
<artifactId>$2</artifactId>
|
||||
</exclusion>$0
|
||||
</exclusions>
|
||||
@@ -1,3 +0,0 @@
|
||||
#name : incvar
|
||||
# --
|
||||
<xi:include href="local-variables.ebk" xpointer="${1:l-product-um}"/>$0
|
||||
@@ -1,10 +0,0 @@
|
||||
#name : list
|
||||
# --
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
$0
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
#name : listi
|
||||
# --
|
||||
<listitem><para>$0</para></listitem>
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
#name : lit
|
||||
# --
|
||||
<literal>$0</literal>
|
||||
@@ -1,5 +0,0 @@
|
||||
#name : ol with a li
|
||||
# --
|
||||
<ol>
|
||||
<li>$0</li>
|
||||
</ol>
|
||||
@@ -1,5 +0,0 @@
|
||||
#name : para
|
||||
# --
|
||||
<para>
|
||||
$0
|
||||
</para>
|
||||
@@ -1,4 +0,0 @@
|
||||
#name : prog
|
||||
# --
|
||||
<programlisting><![CDATA[$0
|
||||
]]></programlisting>
|
||||
@@ -1,5 +0,0 @@
|
||||
#name : insert a JS tag without src
|
||||
# --
|
||||
<script type="text/javascript">
|
||||
$0
|
||||
</script>
|
||||
@@ -1,4 +0,0 @@
|
||||
#name : insert a JS tag with src
|
||||
# --
|
||||
<script type="text/javascript" src="${1:script.js}"></script>
|
||||
$0
|
||||
@@ -1,8 +0,0 @@
|
||||
#name : sec
|
||||
# --
|
||||
<section xml:id="t_${1:$(replace-regexp-in-string " " "_" (downcase text))}">
|
||||
<title>${1:My Title}</title>
|
||||
<para>
|
||||
$0
|
||||
</para>
|
||||
</section>
|
||||
@@ -1,5 +0,0 @@
|
||||
#name : ul with a li
|
||||
# --
|
||||
<ul>
|
||||
<li>$0</li>
|
||||
</ul>
|
||||
@@ -1,3 +0,0 @@
|
||||
#name : varece
|
||||
# --
|
||||
<xi:include href="ece-global:global-variables.ebk" xpointer="g-engine" />
|
||||
@@ -1,4 +0,0 @@
|
||||
#name : xlink
|
||||
# --
|
||||
<link xlink:href="${1:https://example.com}">$2</link>
|
||||
$0
|
||||
@@ -1,5 +0,0 @@
|
||||
#name : insert a Confluence code block
|
||||
# --
|
||||
{code}
|
||||
$0
|
||||
{code}
|
||||
@@ -1,21 +0,0 @@
|
||||
#name: daily
|
||||
# --
|
||||
* ❯ Admin, training & maintenance
|
||||
** DEVTR-1 Meetings, email, Slack++
|
||||
** DEVTR-5 System Maintenance
|
||||
** DEVTR-6 Software Delivery
|
||||
** DEVTR-8 Training
|
||||
|
||||
* ❯ Coding
|
||||
|
||||
* ❯ Review
|
||||
|
||||
* ❯ Specification
|
||||
|
||||
* ❯ Support
|
||||
** DEVTR-3 PSERV Assistance
|
||||
** DEVTR-5 Helping out colleagues in R&D
|
||||
|
||||
* ❯ Report
|
||||
#+BEGIN: clocktable :maxlevel 2
|
||||
#+END:
|
||||
@@ -1 +0,0 @@
|
||||
** TODO DEVTR-44 Review - $0
|
||||
@@ -1,5 +0,0 @@
|
||||
#name : insert a quote
|
||||
# --
|
||||
#+begin_quote
|
||||
$0
|
||||
#+end_quote
|
||||
@@ -1,5 +0,0 @@
|
||||
#name : insert a source (BASH) declaration
|
||||
# --
|
||||
#+begin_src markdown
|
||||
$0
|
||||
#+end_src
|
||||
@@ -1 +0,0 @@
|
||||
#+title: $0
|
||||
@@ -1,4 +0,0 @@
|
||||
#name : app
|
||||
# --
|
||||
app = $1(__name__)
|
||||
$0
|
||||
@@ -1,4 +0,0 @@
|
||||
#name : def
|
||||
# --
|
||||
def $1($2):
|
||||
$0
|
||||
@@ -1,4 +0,0 @@
|
||||
#name : im
|
||||
# --
|
||||
from $1 import $2
|
||||
$0
|
||||
@@ -1,6 +0,0 @@
|
||||
#name : imflask
|
||||
# --
|
||||
from flask import Flask
|
||||
from flask import render_template
|
||||
from requests import get
|
||||
$0
|
||||
@@ -1,4 +0,0 @@
|
||||
#name : main
|
||||
# --
|
||||
if __name__ == "__main__":
|
||||
$0
|
||||
@@ -1,6 +0,0 @@
|
||||
#name : Create @property function
|
||||
# --
|
||||
@property
|
||||
def $1(self):
|
||||
return self._$1
|
||||
$0
|
||||
@@ -1,4 +0,0 @@
|
||||
#name : pr
|
||||
# --
|
||||
print($1)
|
||||
$0
|
||||
@@ -1,4 +0,0 @@
|
||||
#name : prx
|
||||
# --
|
||||
print(etree.tostring($1, encoding='unicode'))
|
||||
$0
|
||||
@@ -1,3 +0,0 @@
|
||||
#name : render
|
||||
# --
|
||||
return render_template("$1", data=$2)
|
||||
@@ -1,5 +0,0 @@
|
||||
#name : route
|
||||
# --
|
||||
@app.route("/<$1>$2")
|
||||
def $3($1):
|
||||
$0
|
||||
@@ -1,5 +0,0 @@
|
||||
#name : route
|
||||
# --
|
||||
@app.route("/<$1>/<$2>$3")
|
||||
def $4($1, $2):
|
||||
$0
|
||||
@@ -1 +0,0 @@
|
||||
package ${1:`(replace-regexp-in-string "/" "." (file-name-directory (buffer-file-name)))`}$0
|
||||
@@ -1 +0,0 @@
|
||||
print("$1", $2)$0
|
||||
@@ -1,44 +0,0 @@
|
||||
#key: args
|
||||
# --
|
||||
|
||||
read_user_input() {
|
||||
local opts=
|
||||
opts=$(getopt \
|
||||
-o hr:nv \
|
||||
--long help \
|
||||
--long version: \
|
||||
--long dry-run \
|
||||
--long verbose \
|
||||
-n 'parse-options' \
|
||||
-- "$@")
|
||||
if [ $? != 0 ] ; then
|
||||
echo "Failed parsing options." >&2
|
||||
exit 1
|
||||
fi
|
||||
eval set -- "$opts"
|
||||
|
||||
while true; do
|
||||
case "\$1" in
|
||||
-h | --help)
|
||||
print_help;
|
||||
exit 0
|
||||
break;;
|
||||
-r | --version)
|
||||
export version=\$2
|
||||
shift 2;;
|
||||
-n | --dry-run)
|
||||
export dry_run=1
|
||||
shift;;
|
||||
-v | --verbose)
|
||||
export verbose=1
|
||||
shift;;
|
||||
-- )
|
||||
shift;
|
||||
break ;;
|
||||
* )
|
||||
break ;;
|
||||
esac
|
||||
done
|
||||
|
||||
export rest_of_args=$*
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
#name: aw
|
||||
# --
|
||||
awk '{print \$${1:1}\}'$0
|
||||
@@ -1,18 +0,0 @@
|
||||
#name : cmd
|
||||
# --
|
||||
#! /usr/bin/env bash
|
||||
|
||||
## author: torstein, torstein@skybert.net
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
main() {
|
||||
:
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
#name: cwd
|
||||
# --
|
||||
local _cwd=
|
||||
_cwd="$(cd "\$(dirname "\${BASH_SOURCE[0]}")" &> /dev/null && pwd)"
|
||||
$0
|
||||
@@ -1,5 +0,0 @@
|
||||
#name : eof
|
||||
# --
|
||||
cat <<EOF
|
||||
$0
|
||||
EOF
|
||||
@@ -1,5 +0,0 @@
|
||||
#name : fn
|
||||
# --
|
||||
${1:read_user_input}() {
|
||||
$0
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
assertEquals() {
|
||||
test "\$1" = "\$2" || {
|
||||
printf "Failed: Expected: [%s] Actual: [%s]\\n" "\${1}" "\${2}"
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
$0
|
||||
@@ -1,6 +0,0 @@
|
||||
#name : fo
|
||||
# --
|
||||
for ${1:el} in \$\{${2:list}\}; do
|
||||
echo "\${$1}"
|
||||
$0
|
||||
done
|
||||
@@ -1,19 +0,0 @@
|
||||
#name : help
|
||||
# --
|
||||
_show_help() {
|
||||
cat <<EOF
|
||||
NAME
|
||||
$(basename "\$0")
|
||||
|
||||
SYNOPSIS
|
||||
$(basename "\$0")
|
||||
|
||||
OPTIONS
|
||||
--help Don't panic
|
||||
|
||||
AUTHORS
|
||||
skybert wrote the initial version.
|
||||
|
||||
$0
|
||||
EOF
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
#name : if
|
||||
# --
|
||||
if [ ${1} ]; then
|
||||
$0
|
||||
fi
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user