Couple of small updates
cc587a5f8efb407409abe196936b94f76c20ec3d
1 parent
9beb9eaa
.vimrc
+1 -0
| 392 | 392 | endfor |
|
| 393 | 393 | endfunction |
|
| 394 | 394 | ||
| 395 | 395 | command! Write setlocal spell | Goyo 100x98% |
|
| 396 | 396 | command! Code setlocal nospell | Goyo! |
|
| 397 | + | command! GitAdd silent !git add % |
|
| 397 | 398 | ||
| 398 | 399 | " Delete the current file. |
|
| 399 | 400 | command! Delete call delete(expand('%')) | bdelete! |
|
| 400 | 401 | ||
| 401 | 402 | if has("nvim") |
.zshrc
+5 -1
| 97 | 97 | ||
| 98 | 98 | /usr/bin/tree --prune -I ".git|${ignored_filter: : -1}" "$@" |
|
| 99 | 99 | } |
|
| 100 | 100 | ||
| 101 | 101 | function find-and-replace { |
|
| 102 | - | rg "$1" --files-with-matches | xargs sed -i "s/$1/$2/g" |
|
| 102 | + | rg "$1" --files-with-matches | xargs sed -i "s@$1@$2@g" |
|
| 103 | 103 | } |
|
| 104 | 104 | ||
| 105 | 105 | function pdf-slice { |
|
| 106 | 106 | qpdf $1 --pages . $2 -- $3 |
|
| 107 | 107 | } |
| 170 | 170 | ||
| 171 | 171 | if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then |
|
| 172 | 172 | indicator="$(whoami)@$(cat /etc/hostname) #" |
|
| 173 | 173 | fi |
|
| 174 | 174 | ||
| 175 | + | if [ -n "$RAD_HOME" ]; then |
|
| 176 | + | indicator="RAD_HOME=$RAD_HOME 🌱" |
|
| 177 | + | fi |
|
| 178 | + | ||
| 175 | 179 | # Status |
|
| 176 | 180 | if [ "$last" -eq 0 ]; then |
|
| 177 | 181 | PROMPT="%{$fg[blue]%}$indicator %{$reset_color%}" |
|
| 178 | 182 | RPROMPT="" |
|
| 179 | 183 | else |