nicer readme

This commit is contained in:
Phuntsok Drak-pa 2019-10-23 15:25:35 +02:00
parent e05888f731
commit 8ea3978680

View File

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