summaryrefslogtreecommitdiff
path: root/.config/shell/aliasrc
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-14 23:04:22 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-14 23:04:22 +0100
commit5e4dd0d829ec5f8be153a817f09952fbb08394b4 (patch)
treefc6ac1dbdf5d16cbd0d19e18d37c390d7aa84fd5 /.config/shell/aliasrc
parent7bac3142f88e53549620d74b55888970ffa8d051 (diff)
Add alias for updating neovim, add ALT_KB_LAYOUT envar
Diffstat (limited to '.config/shell/aliasrc')
-rwxr-xr-x.config/shell/aliasrc45
1 files changed, 23 insertions, 22 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc
index 0b29163..5ed89cd 100755
--- a/.config/shell/aliasrc
+++ b/.config/shell/aliasrc
@@ -7,38 +7,36 @@
[ -f "$XINITRC" ] && alias startx="startx $XINITRC"
# sudo not required for some system commands.
-for x in mount unmount sv pacman updatedb su reboot ; do
+for x in mount unmount sv pacman updatedb su reboot; do
alias $x="sudo $x"
done
# Verbosity and settings that you pretty much just always are going to want.
alias \
- cp="cp -iv" \
- mv="mv -iv" \
- rm="rm -viI" \
- bc="bc -ql" \
- mkd="mkdir -pv" \
- ffmpeg="ffmpeg -hide_banner"
+ cp="cp -iv" \
+ mv="mv -iv" \
+ rm="rm -viI" \
+ bc="bc -ql" \
+ mkd="mkdir -pv" \
+ ffmpeg="ffmpeg -hide_banner"
alias \
- ls="ls -ahlN --color=auto --group-directories-first" \
- grep="grep --color=auto" \
- diff="diff --color=auto"
- # ccat="highlight --out-format=ansi"
+ ls="ls -ahlN --color=auto --group-directories-first" \
+ grep="grep --color=auto" \
+ diff="diff --color=auto"
+# ccat="highlight --out-format=ansi"
# My aliases for different programs
alias \
- lg="lazygit" \
- gpuwatch="watch -n1 nvidia-smi" \
- zshconfig="nvim ~/.zshrc" \
- zrc="nvim ~/.zshrc" \
- zsource="source $HOME/.config/zsh/.zshrc" \
- sdn="sudo shutdown -h now" \
- e="$EDITOR" \
- v="$EDITOR" \
- p="sudo pacman" \
- config="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" \
- z="zathura"
+ lg="lazygit" \
+ gpuwatch="watch -n1 nvidia-smi" \
+ zsource="source $HOME/.config/zsh/.zshrc" \
+ sdn="sudo shutdown -h now" \
+ e="$EDITOR" \
+ v="$EDITOR" \
+ p="sudo pacman" \
+ config="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" \
+ z="zathura"
# Pushing to multiple git repositories
alias gua="git remote | xargs -L1 git push --all"
@@ -46,3 +44,6 @@ alias cua="config remote | xargs -L1 git --git-dir=$HOME/dotfiles/ --work-tree=$
# Doas smooth transition
alias sudo="doas"
+
+# Update nvim config
+alias cun="(cd $XDG_CONFIG_HOME && config submodule update --recursive --remote)"