summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rwxr-xr-x.config/shell/aliasrc45
-rwxr-xr-x.config/shell/profile2
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%"