From 35731ccd7b88b9bf75e6ff2c23770471909f9b3b Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Sun, 6 Feb 2022 21:38:59 +0100 Subject: [PATCH] Update basic bash config --- applications.org | 13 +------------ bash.org | 25 +++++-------------------- 2 files changed, 6 insertions(+), 32 deletions(-) diff --git a/applications.org b/applications.org index 7f2f55b..525652b 100644 --- a/applications.org +++ b/applications.org @@ -63,7 +63,7 @@ Version=R2020b Type=Application Terminal=false MimeType=text/x-matlab -Exec=/usr/local/MATLAB/R2020b/bin/matlab -desktop +Exec=/home/thomas/.local/bin/matlab -desktop Name=MATLAB Icon=matlab Categories=Development;Math;Science @@ -147,17 +147,6 @@ Terminal=false Categories=Utility;TextEditor; #+end_src -* Torrent with Transmission -:PROPERTIES: -:header-args: :tangle ~/.local/share/applications/torrent.desktop -:END: -#+begin_src conf -[Desktop Entry] -Type=Application -Name=Torrent -Exec=tremc %U -#+end_src - * Qutebrowser :PROPERTIES: :header-args: :tangle ~/.local/share/applications/qutebrowser.desktop diff --git a/bash.org b/bash.org index 388748c..abe4ad2 100644 --- a/bash.org +++ b/bash.org @@ -21,7 +21,8 @@ ** FZF #+begin_src bash -source /usr/share/fzf/key-bindings.bash +. /usr/share/doc/fzf/examples/completion.bash +. /usr/share/doc/fzf/examples/key-bindings.bash #+end_src ** Ignore case for auto-completion @@ -189,25 +190,6 @@ function nullify() { } #+END_SRC -*** =sms= - Send SMS -https://doronbehar.com/articles/using-kdeconnect-to-comfortably-send-sms-messages-from-the-shell/#kdeconnects-builtin-sms-interface - -#+begin_src bash :tangle no -sms(){ - local args="$@" - # local phone_number name phone_type - # khard phone --parsable | sort -u | fzf | IFS=$'\t' read -r phone_number name phone_type - local phone_number=$(khard phone --parsable | sort -u | fzf | cut -f1 -d$'\t') - if [[ -z "${phone_number}" ]]; then - echo No recipient was chosen >&2 - return - else - kdeconnect-cli --send-sms "${args}" --destination "${phone_number}" --device 4de3b5de2264a17c - fi -} - -#+end_src - ** Bash History Undocumented feature which sets the size to "unlimited". http://stackoverflow.com/questions/9457233/unlimited-bash-history @@ -327,6 +309,9 @@ PATH=$HOME/appimages:$PATH PATH=$HOME/.gem/ruby/2.5.0/bin:$PATH PATH=$GOPATH:$GOPATH/bin:$PATH PATH=~/.config/emacs/bin:$PATH +PATH=~/.local/bin:$PATH +PATH=~/.npm-global/bin:$PATH +PATH=~/miniconda3/bin:$PATH export PATH #+END_SRC