Merge branch 'master' of gitee.com:klesh/dotfiles
This commit is contained in:
commit
c4eadbf6d4
|
@ -53,7 +53,7 @@ if status is-interactive
|
||||||
alias dt='date "+%Y%m%d-%H%M%S"'
|
alias dt='date "+%Y%m%d-%H%M%S"'
|
||||||
|
|
||||||
# === PATH and file sourcing
|
# === 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 \
|
source_files /usr/share/autojump/autojump.fish /usr/local/share/autojump/autojump.fish \
|
||||||
~/.jabba/jabba.fish \
|
~/.jabba/jabba.fish \
|
||||||
~/.asdf/asdf.fish \
|
~/.asdf/asdf.fish \
|
||||||
|
|
|
@ -226,3 +226,26 @@ class mediacut_open(Command):
|
||||||
read=False,
|
read=False,
|
||||||
)
|
)
|
||||||
self.fm.loader.add(obj)
|
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
6
devel/ruby.sh
Normal 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user