Overview
Comment: | zshrc: Add aliases for fossil |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
1462a28b63a0624ec855ac6785967b94 |
User & Date: | js 2020-05-23 14:55:53 |
Context
2020-05-23
| ||
15:00 | zshrc: Show the fossil branch check-in: 8e842107cf user: js tags: trunk | |
14:55 | zshrc: Add aliases for fossil check-in: 1462a28b63 user: js tags: trunk | |
2020-05-21
| ||
16:03 | tmux: Keep current directory on c/"/% check-in: 9ad2395279 user: js tags: trunk | |
Changes
Changes to zshrc.
︙ | ︙ | |||
178 179 180 181 182 183 184 | [ "$EDITOR" = vim ] && alias vi=vim which gpg2 &>/dev/null && alias gpg=gpg2 make() { case "$PWD" in # pkgsrc needs bmake and does not like MAKEFLAGS including -j. | | > > > > > > > > > | | | | 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 | [ "$EDITOR" = vim ] && alias vi=vim which gpg2 &>/dev/null && alias gpg=gpg2 make() { case "$PWD" in # pkgsrc needs bmake and does not like MAKEFLAGS including -j. */pkgsrc*) MAKEFLAGS= =$(__find_command bmake make) $@ ;; *) =make $@ ;; esac } alias tmux="tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf" if which fossil &>/dev/null; then alias fsl="fossil" alias fsls="fossil status" fsld() { fossil diff "$@" | vim -R - } fi # pkgsrc does not like MAKEFLAGS including -j which pkg_chk &>/dev/null && alias pkg_chk="MAKEFLAGS= pkg_chk" which pkg_rolling-replace &>/dev/null && alias pkg_rolling-replace="MAKEFLAGS= pkg_rolling-replace" which url2pkg &>/dev/null && alias url2pkg="MAKEFLAGS= url2pkg" # mpv does not like locales that use , as decimal point. alias mpv="LC_ALL=C mpv" alias gpg-ssh="SSH_AUTH_SOCK=$GNUPGHOME/S.gpg-agent.ssh ssh" alias gpg-ssh-add="SSH_AUTH_SOCK=$GNUPGHOME/S.gpg-agent.ssh ssh-add" alias gpg-sftp="SSH_AUTH_SOCK=$GNUPGHOME/S.gpg-agent.ssh sftp" pwnk() { local clipboard if which pbcopy &>/dev/null; then clipboard=pbcopy elif which xclip &>/dev/null; then clipboard=xclip else echo "No clipboard handler found!" return 1 fi cryptopassphrase $@ | tr -d '\n' | $clipboard } alias pw="pwnk -k ~/.cryptopassphrase.key" alias pws="pwnk -k ~/.cryptopassphrase-server.key" ixio() { curl -F 'f:1=<-' ix.io } 0x0st() { curl -F'file=@-' https://0x0.st } unset fgrep grep grep_color ls ls_color ls_on_cd ls_on_init simple_prompt unset HISTFILE |