|
|
|
|
@ -1,9 +1,9 @@ |
|
|
|
|
#+TITLE: My .zshrc file |
|
|
|
|
#+AUTHOR: Jacopo De Simoi |
|
|
|
|
#+title: My .zshrc file |
|
|
|
|
#+author: Jacopo De Simoi |
|
|
|
|
|
|
|
|
|
#+HUGO_BASE_DIR: /ssh:ssh.jacopods.xyz:gists/ |
|
|
|
|
#+HUGO_SECTION: zshrc |
|
|
|
|
#+OPTIONS: creator:t toc:nil |
|
|
|
|
#+hugo_base_dir: /ssh:ssh.jacopods.xyz:gists/ |
|
|
|
|
#+hugo_section: zshrc |
|
|
|
|
#+options: creator:t toc:nil |
|
|
|
|
|
|
|
|
|
* Setup org-babel |
|
|
|
|
This helper function checks the tags of the current headline and |
|
|
|
|
@ -29,12 +29,12 @@ are daily and pi, the function returns '(".zshrc" ".zshrc.pi") |
|
|
|
|
* zshrc :@zsh: |
|
|
|
|
All posts in here will have the category set to /zsh/. |
|
|
|
|
** zshrc |
|
|
|
|
:PROPERTIES: |
|
|
|
|
:EXPORT_FILE_NAME: zshrc-file |
|
|
|
|
:EXPORT_DATE: 2020-08-05 |
|
|
|
|
:EXPORT_HUGO_MENU: :menu "main" |
|
|
|
|
:properties: |
|
|
|
|
:export_file_name: zshrc-file |
|
|
|
|
:export_date: 2020-08-05 |
|
|
|
|
:export_hugo_menu: :menu "main" |
|
|
|
|
:header-args: :tangle (org-tags-to-filenames) |
|
|
|
|
:END: |
|
|
|
|
:end: |
|
|
|
|
|
|
|
|
|
# Note that one would have to export only this subtree, otherwise it |
|
|
|
|
# is not going to work… This would need to be investigated |
|
|
|
|
@ -67,15 +67,13 @@ defined in the previous section. |
|
|
|
|
fpath=(~/clones/zshrc/ $fpath) |
|
|
|
|
#+end_src |
|
|
|
|
*** KDE helpers :daily: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Define a number of KDE helpers. |
|
|
|
|
- ~kde-current-activity~ returns the id of the current activity |
|
|
|
|
- ~kde-current-activity-name~ returns the name of the current activity |
|
|
|
|
|
|
|
|
|
The other two swap between build and src dirs on my local git checkout |
|
|
|
|
|
|
|
|
|
#+BEGIN_SRC sh |
|
|
|
|
#+begin_src sh |
|
|
|
|
kde-current-activity () { |
|
|
|
|
qdbus org.kde.ActivityManager /ActivityManager/Activities org.kde.ActivityManager.Activities.CurrentActivity |
|
|
|
|
} |
|
|
|
|
@ -476,7 +474,7 @@ BIG FAT WARNING: this needs to specify an actual file as a destination |
|
|
|
|
hash -d kde="/scratch/kde/src" |
|
|
|
|
hash -d kde5="/scratch/kde/src5" |
|
|
|
|
|
|
|
|
|
#+END_SRC |
|
|
|
|
#+end_src |
|
|
|
|
*** Un-tarmak bindings :daily: |
|
|
|
|
#+begin_src sh |
|
|
|
|
bindkey "^t" forward-char |
|
|
|
|
@ -491,8 +489,7 @@ BIG FAT WARNING: this needs to specify an actual file as a destination |
|
|
|
|
:CREATED: [2021-05-01 Sat 13:35] |
|
|
|
|
:END: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Local variables |
|
|
|
|
# Local Variables: |
|
|
|
|
# local variables: |
|
|
|
|
# eval: (save-excursion (org-babel-goto-named-src-block "def-tag") (org-babel-execute-src-block)) |
|
|
|
|
# end: |
|
|
|
|
|