First, add those lines in your %LocalAppData%\nvim\init.vim
:
" Source local init.vim {{{1
let s:local_vimrc = expand('$LOCALAPPDATA\nvim\init.local.vim')
if filereadable(fnameescape(s:local_vimrc))
--- scrcpy.lua, Genymobile's scrcpy completion for Clink. | |
-- @compatible scrcpy v1.21 | |
-- @author Goldie Lin | |
-- @date 2021-12-12 | |
-- @see [Clink](https://github.com/mridgers/clink/) | |
-- @see [scrcpy](https://github.com/Genymobile/scrcpy) | |
-- @usage | |
-- Place it in "%LocalAppData%\clink\" if installed globally, | |
-- or "ConEmu/ConEmu/clink/" if you used portable ConEmu & Clink. | |
-- |
--- fastboot.lua, Android Fastboot completion for Clink. | |
-- @compatible Android SDK Platform-tools v31.0.3 | |
-- @author Goldie Lin | |
-- @date 2021-08-27 | |
-- @see [Clink](https://github.com/mridgers/clink/) | |
-- @usage | |
-- Place it in "%LocalAppData%\clink\" if installed globally, | |
-- or "ConEmu/ConEmu/clink/" if you used portable ConEmu & Clink. | |
-- |
--- adb.lua, Android ADB completion for Clink. | |
-- @compatible Android SDK Platform-tools v31.0.3 (ADB v1.0.41) | |
-- @author Goldie Lin | |
-- @date 2021-08-27 | |
-- @see [Clink](https://github.com/mridgers/clink/) | |
-- @usage | |
-- Place it in "%LocalAppData%\clink\" if installed globally, | |
-- or "ConEmu/ConEmu/clink/" if you used portable ConEmu & Clink. | |
-- |
#!/usr/bin/env bash | |
git rev-parse 2>/dev/null && \ | |
( [[ "$(git rev-parse --is-bare-repository)" == true ]] && (echo '&' ; echo "# branch.head $(git rev-parse --abbrev-ref HEAD)") || \ | |
[[ "$(git rev-parse --is-inside-git-dir)" == true ]] && echo '@' || \ | |
(git rev-parse --verify -q refs/stash >/dev/null && echo '$' ; git status --porcelain=v2 -b --ignored) \ | |
) | gawk ' | |
/^&$/ { bare++; next; } | |
/^@$/ { insidegit++; next; } |
#!/usr/bin/env bash | |
# Author: Goldie Lin | |
# Description: | |
# * "declare" in a shell function will imply "local" property. | |
# * So, "declare -r" and "readonly" in a shell function are slightly different. | |
# * But, "declare -gr" will be the same as "readonly". | |
test1() { | |
declare a1="a1 is set." | |
declare -r a1r="a1r is set." |
#!/usr/bin/env bash | |
# Function definitions | |
# -------------------- | |
# trim leading & trailing whitespace chars | |
trim() { | |
local var="$1" | |
var="${var#"${var%%[![:space:]]*}"}" # trim leading whitespace chars | |
var="${var%"${var##*[![:space:]]}"}" # trim trailing whitespace chars |
From 2fbaddc181a271c23db70c0fb089959fd437cb66 Mon Sep 17 00:00:00 2001 | |
From: Goldie Lin <[email protected]> | |
Date: Tue, 30 Jun 2015 14:23:30 +0800 | |
Subject: [PATCH 1/5] Android disable C exceptions | |
For some reason, ofstream fails to write to sysfs nodes | |
on Android. So use old-fashion open()/write()/close(). | |
--- | |
src/lib.cpp | 14 ++++++++++++++ | |
1 file changed, 14 insertions(+) |