Added back some abbreviations in fish
This commit is contained in:
parent
db0f81353b
commit
7f3457fb3f
@ -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 |
|
||||||
@ -323,10 +324,9 @@
|
|||||||
And if I want to manipulate system services, I can instead type a simple
|
And if I want to manipulate system services, I can instead type a simple
|
||||||
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)>>
|
||||||
@ -382,13 +382,16 @@
|
|||||||
And of course, when it comes to Docker Compose, I don’t have time to write
|
And of course, when it comes to Docker Compose, I don’t have time to write
|
||||||
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 |
|
||||||
| dcr | docker-compose run --rm |
|
| dcp | docker-compose pull |
|
||||||
| dcu | docker-compose up |
|
| dcr | docker-compose run --rm |
|
||||||
| dcub | docker-compose up --build |
|
| dcu | docker-compose up |
|
||||||
|
| 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
|
||||||
|
Loading…
Reference in New Issue
Block a user