summaryrefslogtreecommitdiff
path: root/.emacs.d/eshell/alias
blob: 62cc86e4c60cce9a61e15c15b3995b36355dc701 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
alias grep-queued { cd /ssh:ssh.upload.debian.org: && *grep $* /srv/upload.debian.org/queued/run/log }
alias grep-dak { cd /ssh:ftp-master.debian.org: && *grep $* /srv/ftp-master.debian.org/log/current }
alias push-develacc-dotfiles-branch git push -f origin develacc/develacc-"${hostname}":develacc-"${hostname}"
alias sbuild-prerelease sbuild --dpkg-source-opts='-Zgzip -z1 --format=1.0 -sn' $* --no-run-lintian
alias sbuild-lts quilt pop -a; git is-clean ':!debian/patches/' && sbuild --no-clean-source --no-run-lintian $*
alias dpkg-bp-lts quilt pop -a; git is-clean && dpkg-buildpackage -S -nc --force-sign $*
alias dpkg-buildpackage-lts dpkg-bp-lts $*
alias d dired $1
alias e find-file $1
alias o find-file-other-window $1
alias g git $*
alias ga git annex $*
alias a2ac annex-to-annex --commit $@
alias v view-file-other-window $1 >/dev/null
alias dak-rdeps { cd /ssh:mirror.ftp-master.debian.org: && dak rm -Rn $* }
alias bts-policy bts user debian-policy@packages.debian.org , package debian-policy , $*
alias afsid apt-file --filter-suites unstable $*
alias grepcopy grep -Eir '(copyright|©)' *
alias pdfwords pdftotext "$1" - | wc -w
alias dlp lp -o sides=two-sided-long-edge $*
alias tail-dak { cd /ssh:ftp-master.debian.org:/srv/ftp-master.debian.org/log && tail -f current }
alias tail-queued { cd /ssh:ssh.upload.debian.org:/srv/upload.debian.org/queued/run && tail -f log }
alias package-plan-unpack ~/src/dotfiles/scripts/debian/package-plan-unpack "$1"; cd "/tmp/$1"
alias deborphan-all deborphan -ap4 --no-show-section | column -x
alias ledger ledger --no-pager $*

# Commands for which we always want to use the external executable.
alias date *date $*

# Override ~/.config/git/config and ~/.profile whose settings imply colours
# only when output is a tty, which it isn't with Eshell.
# We could just export the environment variables, but this should restrict the
# colouration to commands run interactively, not others buried in scripts.
alias git git -c color.ui=always $*
alias quilt QUILT_DIFF_ARGS="-p ab --color=always" QUILT_PUSH_ARGS=--color=always quilt $*