Update basic bash config
This commit is contained in:
parent
0d5b369a8e
commit
35731ccd7b
@ -63,7 +63,7 @@ Version=R2020b
|
|||||||
Type=Application
|
Type=Application
|
||||||
Terminal=false
|
Terminal=false
|
||||||
MimeType=text/x-matlab
|
MimeType=text/x-matlab
|
||||||
Exec=/usr/local/MATLAB/R2020b/bin/matlab -desktop
|
Exec=/home/thomas/.local/bin/matlab -desktop
|
||||||
Name=MATLAB
|
Name=MATLAB
|
||||||
Icon=matlab
|
Icon=matlab
|
||||||
Categories=Development;Math;Science
|
Categories=Development;Math;Science
|
||||||
@ -147,17 +147,6 @@ Terminal=false
|
|||||||
Categories=Utility;TextEditor;
|
Categories=Utility;TextEditor;
|
||||||
#+end_src
|
#+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
|
* Qutebrowser
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:header-args: :tangle ~/.local/share/applications/qutebrowser.desktop
|
:header-args: :tangle ~/.local/share/applications/qutebrowser.desktop
|
||||||
|
25
bash.org
25
bash.org
@ -21,7 +21,8 @@
|
|||||||
|
|
||||||
** FZF
|
** FZF
|
||||||
#+begin_src bash
|
#+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
|
#+end_src
|
||||||
|
|
||||||
** Ignore case for auto-completion
|
** Ignore case for auto-completion
|
||||||
@ -189,25 +190,6 @@ function nullify() {
|
|||||||
}
|
}
|
||||||
#+END_SRC
|
#+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
|
** Bash History
|
||||||
Undocumented feature which sets the size to "unlimited". http://stackoverflow.com/questions/9457233/unlimited-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=$HOME/.gem/ruby/2.5.0/bin:$PATH
|
||||||
PATH=$GOPATH:$GOPATH/bin:$PATH
|
PATH=$GOPATH:$GOPATH/bin:$PATH
|
||||||
PATH=~/.config/emacs/bin:$PATH
|
PATH=~/.config/emacs/bin:$PATH
|
||||||
|
PATH=~/.local/bin:$PATH
|
||||||
|
PATH=~/.npm-global/bin:$PATH
|
||||||
|
PATH=~/miniconda3/bin:$PATH
|
||||||
export PATH
|
export PATH
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user