Merge branch 'master' of gitee.com:klesh/dotfiles

This commit is contained in:
Klesh Wong 2021-07-31 18:03:36 +08:00
commit c4eadbf6d4
3 changed files with 30 additions and 1 deletions

View File

@ -53,7 +53,7 @@ if status is-interactive
alias dt='date "+%Y%m%d-%H%M%S"'
# === PATH and file sourcing
append_paths ~/go/bin ~/bin ~/.local/bin ~/.yarn/bin ~/dotfiles/bin ~/dotfiles/devops/bin ~/Nextcloud/bin
append_paths ~/go/bin ~/bin ~/.local/bin ~/.yarn/bin ~/.config/yarn/global/node_modules/.bin ~/dotfiles/bin ~/dotfiles/devops/bin ~/Nextcloud/bin
source_files /usr/share/autojump/autojump.fish /usr/local/share/autojump/autojump.fish \
~/.jabba/jabba.fish \
~/.asdf/asdf.fish \

View File

@ -226,3 +226,26 @@ class mediacut_open(Command):
read=False,
)
self.fm.loader.add(obj)
class md(Command):
"""
:typeora
create a markdown file with typora
"""
def execute(self):
import subprocess
import os.path
filename = self.arg(1)
if not filename.endswith(".md"):
filename += ".md"
if not os.path.exists(filename):
open(filename, 'a').close()
descr = "editing"
obj = CommandLoader(
args=['x-open', filename],
descr=descr,
read=True
)
self.fm.loader.add(obj)

6
devel/ruby.sh Normal file
View File

@ -0,0 +1,6 @@
gem sources --add https://mirrors.tuna.tsinghua.edu.cn/rubygems/ --remove https://rubygems.org/
bundle config mirror.https://rubygems.org https://mirrors.tuna.tsinghua.edu.cn/rubygems