summaryrefslogtreecommitdiff
path: root/.config/shell/aliasrc
diff options
context:
space:
mode:
Diffstat (limited to '.config/shell/aliasrc')
-rw-r--r--.config/shell/aliasrc21
1 files changed, 10 insertions, 11 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc
index abcb471..2168058 100644
--- a/.config/shell/aliasrc
+++ b/.config/shell/aliasrc
@@ -1,10 +1,9 @@
#!/bin/sh
+# Filip's aliasrc
# Use $XINITRC variable if file exists.
[ -f "$XINITRC" ] && alias startx="startx \$XINITRC"
-[ -f "$MBSYNCRC" ] && alias mbsync="mbsync -c \$MBSYNCRC"
-
# sudo not required for some system commands
sudo_cmds="mount umount sv apt apt-get aptitude dpkg su shutdown poweroff reboot cryptsetup"
for command in $sudo_cmds; do
@@ -23,6 +22,8 @@ alias \
rsync="rsync -vrPlu" \
pstree="pstree -np" \
less="less -XER" \
+ ls="lsn" \
+ vim="nvim" \
# Colorize commands when possible.
alias \
@@ -33,15 +34,14 @@ alias \
fgrep="fgrep --color=auto" \
grep="grep --color=auto" \
ip="ip -color=auto" \
- ls="lsn" \
vdir="vdir --color=auto" \
# Making stuff easy to customize and source automatically
alias \
- vrc='vim "$HOME/.config/vim/.vimrc"' \
- zal='vim "$ZDOTDIR/aliasrc" && source "$ZDOTDIR/aliasrc"' \
- zen='vim "$ZDOTDIR/envvarrc" && source "$ZDOTDIR/envvarrc"' \
- zrc='vim "$ZDOTDIR/.zshrc" && source "$ZDOTDIR/.zshrc"' \
+ vrc='$EDITOR "$HOME/.config/nvim/init.lua"' \
+ zal='$EDITOR "$ZDOTDIR/aliasrc" && source "$ZDOTDIR/aliasrc"' \
+ zen='$EDITOR "$ZDOTDIR/envvarrc" && source "$ZDOTDIR/envvarrc"' \
+ zrc='$EDITOR "$ZDOTDIR/.zshrc" && source "$ZDOTDIR/.zshrc"' \
# Aliases for connecting to server
alias \
@@ -51,9 +51,7 @@ alias \
# Making stuff shorter
alias \
..="cd .." \
- b="buku --suggest" \
bat="batcat" \
- bd="buku-dmenu" \
copy="xsel -ib" \
fd="fdfind" \
ipy="ipython3" \
@@ -68,5 +66,6 @@ alias \
# Git aliases
alias \
dotfiles="/usr/bin/git --git-dir=\$HOME/.dotfiles --work-tree=\$HOME" \
-
-# Limbo
+ ga="git add" \
+ gc="git commit" \
+ gp="git push" \