nicer readme
This commit is contained in:
parent
e05888f731
commit
8ea3978680
@ -42,11 +42,11 @@
|
||||
:CUSTOM_ID: h-c7ab05d0-4c5f-4a4c-8603-4c79e264141c
|
||||
:END:
|
||||
- [[#presentation][Presentation]]
|
||||
- [[#fish-from-within-emacs][Fish from within Emacs]]
|
||||
- [[#tramp-remote-access][Tramp remote access]]
|
||||
- [[#regular-fish-shell-appearance][Regular fish shell appearance]]
|
||||
- [[#global-variables][Global variables]]
|
||||
- [[#abbreviations][Abbreviations]]
|
||||
- [[#fish-from-within-emacs][Fish from within Emacs]]
|
||||
- [[#tramp-remote-access][Tramp remote access]]
|
||||
- [[#regular-fish-shell-appearance][Regular fish shell appearance]]
|
||||
- [[#global-variables][Global variables]]
|
||||
- [[#abbreviations][Abbreviations]]
|
||||
- [[#system-monitoring][System monitoring]]
|
||||
- [[#system-management-packages-and-services][System management (packages and services)]]
|
||||
- [[#package-mangaement][Package mangaement]]
|
||||
@ -90,9 +90,10 @@
|
||||
end
|
||||
#+END_SRC
|
||||
|
||||
** Fish from within Emacs
|
||||
* Fish from within Emacs
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-97d738f4-1ea0-4f64-a31d-19643486a951
|
||||
:HEADER-ARGS: :tangle config.fish :exports code
|
||||
:END:
|
||||
I sometimes call fish from within emacs, with =M-x ansi-term=. In this case,
|
||||
the variable =TERM= needs to have the value =eterm-color=.
|
||||
@ -102,9 +103,10 @@
|
||||
end
|
||||
#+END_SRC
|
||||
|
||||
** Tramp remote access
|
||||
* Tramp remote access
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-6cad2cc9-aef6-4df4-90f9-97053e82072a
|
||||
:HEADER-ARGS: :tangle config.fish :exports code
|
||||
:END:
|
||||
When accessing from a remote machine our computer from Emacs, tramp needs a
|
||||
precise shell appearance: a simple =$= followed by a space after which to put
|
||||
@ -122,9 +124,10 @@
|
||||
end
|
||||
#+END_SRC
|
||||
|
||||
** Regular fish shell appearance
|
||||
* Regular fish shell appearance
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-a8434b29-c146-4141-b8f8-1b446c791907
|
||||
:HEADER-ARGS: :tangle config.fish :exports code
|
||||
:END:
|
||||
Now, there is only one function I modify when it comes to the appearance of
|
||||
fish when I’m the one using it: I simply “delete” the =fish_greeting=
|
||||
@ -133,9 +136,10 @@
|
||||
function fish_greeting; end
|
||||
#+END_SRC
|
||||
|
||||
** Global variables
|
||||
* Global variables
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-0eff37da-af9f-4546-8ad3-201961a2200f
|
||||
:HEADER-ARGS: :tangle config.fish :exports code
|
||||
:END:
|
||||
Some global variables might sometimes be needed and need to be modified. This
|
||||
is for example the case with my =PATH= variable in which I add Rust’s Cargo’s
|
||||
@ -164,11 +168,12 @@
|
||||
set -gx PKG_CONFIG_PATH /usr/local/lib/pkgconfig/ $PKG_CONFIG_PATH
|
||||
#+END_SRC
|
||||
|
||||
** Abbreviations
|
||||
* Abbreviations
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-740bd904-3e32-4c09-b0a4-bde16ae2e116
|
||||
:HEADER-ARGS: :tangle config.fish :exports code
|
||||
:END:
|
||||
*** System monitoring
|
||||
** System monitoring
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-ec910a8c-9154-48a4-b4cd-df28cb4e54d9
|
||||
:END:
|
||||
@ -212,14 +217,14 @@
|
||||
abbr psmem10 'ps auxf | sort -nr -k 4 | head -10'
|
||||
#+END_SRC
|
||||
|
||||
*** System management (packages and services)
|
||||
** System management (packages and services)
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-78ac23f0-960d-4f56-9cba-64413fd61885
|
||||
:END:
|
||||
I added some of these abbreviations due to how often I have to write the
|
||||
whole thing.
|
||||
|
||||
**** Package mangaement
|
||||
*** Package mangaement
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-281a59aa-4ea0-47ab-a4cc-33fff8d38165
|
||||
:END:
|
||||
@ -258,7 +263,7 @@
|
||||
abbr update 'sudo pacman -Syu'
|
||||
#+END_SRC
|
||||
|
||||
**** Service management
|
||||
*** Service management
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-3a734119-ccee-4cdf-b04c-d55a37dea571
|
||||
:END:
|
||||
@ -274,14 +279,14 @@
|
||||
abbr S 'sudo systemctl'
|
||||
#+END_SRC
|
||||
|
||||
*** Development
|
||||
** Development
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-32ae38a2-41ad-438e-b619-220a63166115
|
||||
:END:
|
||||
A good amount of these commands are development related, especially when it
|
||||
comes to compilation or Docker.
|
||||
|
||||
**** CMake
|
||||
*** CMake
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-887c87aa-b100-4b27-9006-778fd7e3329c
|
||||
:END:
|
||||
@ -292,7 +297,7 @@
|
||||
abbr crelease 'cmake -DCMAKE_BUILD_TYPE=Release'
|
||||
#+END_SRC
|
||||
|
||||
**** Compilation
|
||||
*** Compilation
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-0beb47e5-d76a-4037-8f58-e8de141e3761
|
||||
:END:
|
||||
@ -305,7 +310,7 @@
|
||||
abbr gcc 'gcc -Wall -std=c18'
|
||||
#+END_SRC
|
||||
|
||||
**** Docker
|
||||
*** Docker
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-91c7ff90-7b43-4802-be69-5d102281c6d3
|
||||
:END:
|
||||
@ -319,7 +324,7 @@
|
||||
abbr dcub 'docker-compose up --build'
|
||||
#+END_SRC
|
||||
|
||||
**** Git
|
||||
*** Git
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-e72347d4-590e-448c-bc33-0a70fa8ab35b
|
||||
:END:
|
||||
@ -330,7 +335,7 @@
|
||||
abbr randcommit 'git commit -m (curl -s whatthecommit.com/index.txt)'
|
||||
#+END_SRC
|
||||
|
||||
**** Prolog
|
||||
*** Prolog
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-cbb6c31e-faaa-48c3-a83a-d1f143fdcb8d
|
||||
:END:
|
||||
@ -340,7 +345,7 @@
|
||||
abbr swipl 'clear && swipl -q && clear'
|
||||
#+END_SRC
|
||||
|
||||
**** Text editors
|
||||
*** Text editors
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-51155e06-872d-4a12-9bf7-ae5eabc256ad
|
||||
:END:
|
||||
@ -363,7 +368,7 @@
|
||||
abbr vi vim
|
||||
#+END_SRC
|
||||
|
||||
*** LaTeX
|
||||
** LaTeX
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-a8f8a707-90d7-4784-982d-d959b183148e
|
||||
:END:
|
||||
@ -380,7 +385,7 @@
|
||||
abbr texhash 'sudo texhash'
|
||||
#+END_SRC
|
||||
|
||||
*** Some security measures
|
||||
** Some security measures
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-dd97ea71-c43f-4b79-8bb7-1f857284b1b4
|
||||
:END:
|
||||
@ -409,7 +414,7 @@
|
||||
abbr chown 'chown --preserve-root'
|
||||
#+END_SRC
|
||||
|
||||
*** Typos
|
||||
** Typos
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-4c5a03cd-20a8-437e-87b7-af990780084e
|
||||
:END:
|
||||
@ -435,14 +440,14 @@
|
||||
abbr hotp htop
|
||||
#+END_SRC
|
||||
|
||||
*** Misc
|
||||
** Misc
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-3a237ec0-c535-42c7-9c60-3d083745b643
|
||||
:END:
|
||||
Finally, some miscellaneous abbreviations that don’t really fit into any of
|
||||
the above categories.
|
||||
|
||||
**** Sudo
|
||||
*** Sudo
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-0955e2fc-ec25-41b6-814a-929fa3718dda
|
||||
:END:
|
||||
@ -455,7 +460,7 @@
|
||||
abbr please 'sudo -A'
|
||||
#+END_SRC
|
||||
|
||||
**** Exit
|
||||
*** Exit
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-8cf0e895-b919-41a8-ad3d-c5294dc507fd
|
||||
:END:
|
||||
@ -464,7 +469,7 @@
|
||||
abbr q exit
|
||||
#+END_SRC
|
||||
|
||||
**** History
|
||||
*** History
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-162052c5-63c4-435a-b973-422346522c69
|
||||
:END:
|
||||
@ -474,7 +479,7 @@
|
||||
abbr hist history
|
||||
#+END_SRC
|
||||
|
||||
**** Song download from YouTube
|
||||
*** Song download from YouTube
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-4bc663a9-b609-4c86-9a4d-a220013c67f9
|
||||
:END:
|
||||
@ -484,7 +489,7 @@
|
||||
abbr flac 'youtube-dl -x --audio-format flac --audio-quality 0'
|
||||
#+END_SRC
|
||||
|
||||
**** MPV
|
||||
*** MPV
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-3fd5a7eb-4ed4-4b0b-87ca-28f36fb22793
|
||||
:END:
|
||||
@ -495,7 +500,7 @@
|
||||
abbr mpv 'mpv --no-border --force-window=no'
|
||||
#+END_SRC
|
||||
|
||||
**** Compression
|
||||
*** Compression
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-05919be3-360a-45c6-8c89-76836375d55b
|
||||
:END:
|
||||
@ -509,7 +514,7 @@
|
||||
abbr untar 'tar -xvzf'
|
||||
#+END_SRC
|
||||
|
||||
**** Feh
|
||||
*** Feh
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-41cfc583-14ba-4f15-9578-bc37b432a3ce
|
||||
:END:
|
||||
@ -520,7 +525,7 @@
|
||||
abbr feh 'feh -Zx.'
|
||||
#+END_SRC
|
||||
|
||||
**** ls
|
||||
*** ls
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-9980009d-3fc4-4e2e-861b-1af007212f8d
|
||||
:END:
|
||||
@ -530,7 +535,7 @@
|
||||
abbr lsl 'ls -ahl'
|
||||
#+END_SRC
|
||||
|
||||
**** NetworkManager
|
||||
*** NetworkManager
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-5f9d4866-3086-4ed9-9ff3-d80a0af36593
|
||||
:END:
|
||||
@ -540,7 +545,7 @@
|
||||
abbr nmcli 'nmcli -p -c auto'
|
||||
#+END_SRC
|
||||
|
||||
**** Wget
|
||||
*** Wget
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h-74f84f1c-433d-488a-88a7-89915c1a3bd5
|
||||
:END:
|
||||
|
Loading…
Reference in New Issue
Block a user