dblume commited on 2024-01-17 10:47:59
Showing 1 changed files, with 6 additions and 4 deletions.
| ... | ... |
@@ -143,13 +143,15 @@ case "$-" in |
| 143 | 143 |
;; |
| 144 | 144 |
esac |
| 145 | 145 |
|
| 146 |
-alias findinpyfiles="find . -name \*.py -print0 | xargs -0 grep -nI" |
|
| 147 |
-alias findinchppfiles="find . -type f \( -name \*.[ch]pp -or -name \*.[ch] \) -print0 | xargs -0 grep -nI" |
|
| 148 |
-alias findincppfiles="find . -type f \( -name \*.cpp -or -name \*.c \) -print0 | xargs -0 grep -nI" |
|
| 149 |
-alias findinhppfiles="find . -type f \( -name \*.hpp -or -name \*.h \) -print0 | xargs -0 grep -nI" |
|
| 146 |
+# Keeping as an example, but haven't used since ripgrep |
|
| 147 |
+#alias findinchppfiles="find . -type f \( -name \*.[ch]pp -or -name \*.[ch] \) -print0 | xargs -0 grep -nI" |
|
| 150 | 148 |
|
| 151 | 149 |
alias clip="expand | cut -b1-\$COLUMNS" |
| 152 | 150 |
|
| 151 |
+# I'm often interested in the most recently changed file |
|
| 152 |
+#alias lh="ls -lt | head -\$((\$(tput lines)*2/3))" |
|
| 153 |
+alias lh="ls -lt | head -\$((\$LINES*2/3))" |
|
| 154 |
+ |
|
| 153 | 155 |
# For httpie: https://github.com/jakubroztocil/httpie#installation |
| 154 | 156 |
alias https='http --default-scheme=https' |
| 155 | 157 |
|
| 156 | 158 |