markdown expansion_command:[https://nomuraya.work/techzine/0212,https://github.nomuraya.work/gist/ex
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown expansion_command:[https://nomuraya.work/techzine/0212,https://github.nomuraya.work/gist/ex相关的知识,希望对你有一定的参考价值。
expansion command
# expansion command
- [github page](https://github.nomuraya.work/gist/expansion_command/)
- [discription](https://nomuraya.work/techzine/0212)
- [back](../)
# Using
## cdls
1. create /usr/local/bin/cdls
2. chmod +x /usr/local/bin/cdls
3. add function for cdls() to ~/.bashrc
## cd expantion
- rename: cdls() -> cd()
- modify: [cd] -> builtin cd
# ~/.bashrc
[view latest](https://gist.github.com/shimajima-eiji/41e1492848a00d3f095286eecc4bbe85#file-dot-bashrc)
```
# your command
cdls() {
. /usr/local/bin/cdls
}
# builtin command
cd() {
builtin cd "$@"
ls
}
```
# /usr/local/bin/cdls
[view latest](https://gist.github.com/shimajima-eiji/41e1492848a00d3f095286eecc4bbe85#file-cdls
```
# /usr/local/bin/cdls(.sh)
# chmod +x (this)
cd "$@"
pwd -P
ls
```
[back](../)
# your command
cdls() {
. /usr/local/bin/cdls
}
# builtin command
cd() {
builtin cd "$@"
pwd -P
ls
}
# /usr/local/bin/cdls(.sh)
# chmod +x (this)
cd "$@"
pwd -P
ls
expansion_command
# expansion_command
- [github page](https://github.nomuraya.work/gist/expansion_command/)
- [discription](https://nomuraya.work/techzine/0211)
以上是关于markdown expansion_command:[https://nomuraya.work/techzine/0212,https://github.nomuraya.work/gist/ex的主要内容,如果未能解决你的问题,请参考以下文章
转换rst到markdown总结
markdown [Markdown HowTo]作为Markdown语法的秘籍
python markdown干啥用的
markdown前端渲染
如何用markdown生成目录
markdown排版示例