diff --git a/cli/fish/config.fish b/cli/fish/config.fish index 3718241..9231dae 100644 --- a/cli/fish/config.fish +++ b/cli/fish/config.fish @@ -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 \ diff --git a/cli/ranger/commands.py b/cli/ranger/commands.py index 38ce93b..8b9fd2c 100644 --- a/cli/ranger/commands.py +++ b/cli/ranger/commands.py @@ -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) diff --git a/devel/ruby.sh b/devel/ruby.sh new file mode 100644 index 0000000..1de293d --- /dev/null +++ b/devel/ruby.sh @@ -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 +