20 Commits

Author SHA1 Message Date
Luke Smith
fdfd23a82c
Revert "aliasrc | improve se() (#1433)" close #1459
This reverts commit e2d787992ed8cdd3105fdf8d45ab2d695796238b.
2025-03-18 20:05:39 +01:00
Alessio Artoni
70ee0fe03f
Evaluate aliases at runtime (#1456) 2025-03-06 21:47:02 +00:00
Emre AKYÜZ
e2d787992e
aliasrc | improve se() (#1433)
* aliasrc  |  improve se()

1. Remove external commands like find.
2. Remove extensions and path (if present) from the names in fzf.
3. Only open Nvim if there is a selection.

Do all of these without using find, sed, grep.

- First line creates an array with the files in the scripts directory.

- Second line removes path (:t) and the extensions (:r) from the scripts.

- [[ "${c}" ]] checks if this variable is non-empty.

- ${${(M)s:#*/${c}*}[1]}
(M) enables "match" mode.
:# anchors the pattern to the start of each array element.
*/${c}* matches any path containing the selected basename.
[1] selects the first matching item.

* capture sub-directories too
2025-02-28 19:11:57 +00:00
Kipras Melnikovas
131dcce268
shortcuts: export env vars for each shortcut (#1395)
useful if want to use shortcuts w/ different progs instead of
their default behavior (cd / $EDITOR), e.g.:

```sh
cd ~/Downloads
mv foo.mp3 $music
```

Co-authored-by: Luke Smith <luke@lukesmith.xyz>
2024-07-15 17:37:04 +00:00
appeasementPolitik
368d3583a6
weath: Add option to get forecast from a different location (#1327)
* weath: Add option to get forecast from a different location

* Remove retry and make max time lower because it is interactive

* Give weath 'cp' option to copy forecast as plain text for sharing

* Make weath a separate script
2024-07-15 17:28:50 +00:00
Luke Smith
a2e767e4f4
other aliases 2023-02-17 10:18:01 -05:00
appeasementPolitik
92de5e82b3
weatherreport is stored in cache (#1201) 2022-10-02 19:11:17 +00:00
Luke Smith
8f2810ac20 samedir now sd, libxft-bgra message removed 2022-07-19 17:04:17 -04:00
krisdoodle45
953d85619a
Replace youtube-dl with yt-dlp system-wide (#1019)
* Replace youtube-dl with yt-dlp in qndl

* Replace youtube-dl with yt-dlp in dmenuhandler

* Replace youtube-dl with yt-dlp in newsboat config

* Replace youtube-dl with yt-dlp in aliasrc

Co-authored-by: Luke Smith <luke@lukesmith.xyz>
2022-03-29 01:28:41 +00:00
M.Zeinali
975353bf71
colorize ip command (#1093) 2022-03-21 13:59:39 +00:00
Luke Smith
148f1432e6
lf tweaks included ueberzug images 2022-03-06 13:19:51 -05:00
Hekuran
15d09bac36
sysact rewrite and minor stuff (#1000)
* minor forgoten stuff

we already have shutdown in sudo loop

* why was this still here? it belongs in ~/.config/

* what the actual phucc

* implemented loginctl and fixed shebang
2021-09-23 14:54:58 -04:00
Hekuran
9b6005292c
lapsus calami (#988)
don't remove the whole thing, just sudo
2021-08-25 09:51:52 -04:00
Luke Smith
1c676c7cf2
close #971 2021-08-25 08:02:39 -04:00
Luke Smith
9dec1225a4
fix #956 2021-05-30 20:55:28 -04:00
Alireza
ea99abf1fa
Paths fixed (#928)
shortcutrc is created on shell directory with shortcuts script
same for zshnameddirrc
2021-04-06 14:53:19 -04:00
Luke Smith
284b1078cb
minor tweaks, electrum and mbsync to ~/.config 2021-03-07 15:44:52 -05:00
Luke Smith
deecc42707
startx alias 2021-03-07 15:40:43 -05:00
Luke Smith
3249d6b100
clean up 2021-02-07 17:30:49 -05:00
Luke Smith
cba0fcc03d
old stuff removed
many files renamed, possible breakage
2020-11-16 18:06:41 -05:00