Added back some abbreviations in fish

This commit is contained in:
Lucien Cartier-Tilet 2020-04-11 20:27:46 +02:00
parent db0f81353b
commit 7f3457fb3f
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -273,6 +273,7 @@
|--------------+---------------------------------------------------| |--------------+---------------------------------------------------|
| df | df -H | | df | df -H |
| diskspace | sudo df -h \vert grep -E "sd\vert{}lv\vert{}Size" | | diskspace | sudo df -h \vert grep -E "sd\vert{}lv\vert{}Size" |
| du | du -ch |
| meminfo | free -m -l -t | | meminfo | free -m -l -t |
| gpumeminfo | grep -i --color memory /var/log/Xorg.0.log | | gpumeminfo | grep -i --color memory /var/log/Xorg.0.log |
| cpuinfo | lscpu | | cpuinfo | lscpu |
@ -324,9 +325,8 @@
capital =S=. capital =S=.
#+NAME: service-abbr #+NAME: service-abbr
| abbreviation | command | | abbreviation | command |
|--------------+------------------| |--------------+-----------|
| s | systemctl --user | | s | systemctl |
| S | sudo systemctl |
#+BEGIN_SRC fish #+BEGIN_SRC fish
<<generate-abbr(table=service-abbr)>> <<generate-abbr(table=service-abbr)>>
@ -383,12 +383,15 @@
the full command, so I use these instead. the full command, so I use these instead.
#+NAME: abbr-docker #+NAME: abbr-docker
| abbreviation | command | | abbreviation | command |
|--------------+---------------------------| |--------------+------------------------------|
| dc | docker-compose | | dc | docker-compose |
| dcd | docker-compose down | | dcd | docker-compose down |
| dcp | docker-compose pull |
| dcr | docker-compose run --rm | | dcr | docker-compose run --rm |
| dcu | docker-compose up | | dcu | docker-compose up |
| dcub | docker-compose up --build | | dcub | docker-compose up --build |
| dcud | docker-compose up -d |
| dcudb | docker-compose up -d --build |
Here is the corresponding fish configuration: Here is the corresponding fish configuration:
#+BEGIN_SRC fish #+BEGIN_SRC fish
@ -642,8 +645,15 @@
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: h-9c015cdd-30c0-4464-8e1a-b67a98eaf036 :CUSTOM_ID: h-9c015cdd-30c0-4464-8e1a-b67a98eaf036
:END: :END:
#+NAME: exa-abbr
| abbreviation | command |
|--------------+--------------------------------------------|
| exa | exa -halg@ --group-directories-first --git |
| ls | exa -halg@ --group-directories-first --git |
| lsl | exa -halg@ --group-directories-first --git |
#+BEGIN_SRC fish #+BEGIN_SRC fish
abbr exa 'exa -halg@ --group-directories-first --git' <<generate-abbr(table=exa-abbr)>>
#+END_SRC #+END_SRC
*** Network Management *** Network Management