Skip to content

Instantly share code, notes, and snippets.

{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"foreground": "#3A86FF",
"properties": {
"template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}} "
let mapleader=" "
source ~/.config/neovim/init.lua
set multicursor
set relativenumber
set number
set incsearch
set hlsearch
set autoindent
set showmode
/// <summary>
/// 邮箱
/// </summary>
public const string EMAIL_REGEX = @"\w[-\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\.)+[A-Za-z]{2,14}";
/// <summary>
/// 国内手机号
/// </summary>
public const string MOBILE_CHINA_REGEX = @"0?(13|14|15|17|18|19)[0-9]{9}";
@Tjlastnumber
Tjlastnumber / .zshrc
Created January 29, 2019 05:18
windows ubuntu use docker config
DOCKER_HOST=tcp://0.0.0.0:2375
@Tjlastnumber
Tjlastnumber / generatorConfig.xml
Last active January 28, 2019 09:12
mybatis generate config
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE generatorConfiguration
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
<generatorConfiguration>
<!-- 引入配置文件 -->
<properties resource="db.properties"/>
<classPathEntry location="${jdbc.classPath}"/>
<context id="default" targetRuntime="MyBatis3" >
@Tjlastnumber
Tjlastnumber / git config
Last active January 23, 2019 10:11
git config log
git config --global alias.clog "log --graph --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %Cgreen<%an>%Creset - %s %Cblue(%ar)%Creset'"
@Tjlastnumber
Tjlastnumber / .gitconfig
Last active February 25, 2022 06:12
git config log
[alias]
clog = log --graph --pretty=format:'%C(bold blue)%h%C(cyan)%d%Creset %Cgreen(%ar)%Creset - %s %C(brightblack)-- %an%Creset'
bs = for-each-ref --sort=-committerdate refs/heads/ --format='%(authordate:short) %(color:red)%(objectname:short) %(color:yellow)%(refname:short)%(color:reset) (%(color:green)%(committerdate:relative)%(color:reset))'
[user]
name = shao xuehai
email = shaoxuehai@gridsum.com
[diff]
tool = vscode
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
@Tjlastnumber
Tjlastnumber / PowerShell Customization.md
Last active November 1, 2021 15:01 — forked from jchandra74/PowerShell Customization.md
PowerShell, Cmder / ConEmu, Posh-Git, Oh-My-Posh, Powerline Customization

Pimping Up Your PowerShell & Cmder with Posh-Git, Oh-My-Posh, & Powerline Fonts

Backstory (TLDR)

I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.

For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.

Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.