diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-14 23:04:22 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-14 23:04:22 +0100 |
commit | 5e4dd0d829ec5f8be153a817f09952fbb08394b4 (patch) | |
tree | fc6ac1dbdf5d16cbd0d19e18d37c390d7aa84fd5 /.config | |
parent | 7bac3142f88e53549620d74b55888970ffa8d051 (diff) |
Add alias for updating neovim, add ALT_KB_LAYOUT envar
Diffstat (limited to '.config')
-rwxr-xr-x | .config/shell/aliasrc | 45 | ||||
-rwxr-xr-x | .config/shell/profile | 2 |
2 files changed, 25 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)" diff --git a/.config/shell/profile b/.config/shell/profile index 26bd0f3..06285ad 100755 --- a/.config/shell/profile +++ b/.config/shell/profile @@ -25,6 +25,8 @@ export CARGO_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/cargo" export GOPATH="${XDG_DATA_HOME:-$HOME/.local/share}/go" export HISTFILE="${XDG_DATA_HOME:-$HOME/.local/share}/history" export LESSHIST="-" +export ALT_KB_LAYOUT="sv" + # Other program settings: export FZF_DEFAULT_OPTS="--layout=reverse --height 40%" |