Merge branch 'master' of git.blakenorth.net/home/git/dotfiles
This commit is contained in:
commit
b2c4d70e4b
7 changed files with 124 additions and 74 deletions
|
@ -4,6 +4,8 @@
|
|||
alias \
|
||||
vimdiff='nvim -d' \
|
||||
|
||||
alias sd=sudo
|
||||
|
||||
alias \
|
||||
vv='$EDITOR' \
|
||||
e='$EDITOR' \
|
||||
|
@ -31,7 +33,7 @@ alias \
|
|||
|
||||
# <<<
|
||||
## Program improvements (ex: ls = ls -h) >>>
|
||||
alias sudo='sudo VISUAL="$VISUAL" SYSTEMD_EDITOR="$SYSTEMD_EDITOR" ' # allow using aliases in sudo commands
|
||||
alias sudo='sudo VISUAL="$VISUAL" SYSTEMD_EDITOR="$SYSTEMD_EDITOR" ' # allow using aliases in sudo commands and add some env vars
|
||||
alias df='df -h' # Human-readable sizes
|
||||
alias free='free -m' # Show sizes in MB
|
||||
alias bc='bc -ql' # Make bc usable for fast math
|
||||
|
@ -52,6 +54,7 @@ alias \
|
|||
fgrep='fgrep --color=auto' \
|
||||
diff='diff --color=auto' \
|
||||
pacman='pacman --color=auto' \
|
||||
alias ip='ip -color=auto' \
|
||||
|
||||
# super duper paru alias
|
||||
# shellcheck disable=SC2139
|
||||
|
@ -86,9 +89,11 @@ alias ydotool='(sudo ydotoold &) && sleep 0.05 && sudo ydotool'
|
|||
# Update zinit and plugins
|
||||
alias zup='zinit self-update && zinit update --parallel'
|
||||
|
||||
# Run PackerSync in neovim with PS
|
||||
alias PS='nvim --headless -c "autocmd User PackerComplete quitall" -c "PackerSync"'
|
||||
|
||||
# Edit config files
|
||||
alias \
|
||||
nvc='(cd ~/.config/nvim/lua/blake && nvim ../../init.lua)' \
|
||||
zc='$EDITOR ~/.zshrc' \
|
||||
sc='$EDITOR $SHELL_CONFIG_DIR/shrc' \
|
||||
fstab='sudoedit /etc/fstab' \
|
||||
|
|
6
.config/shell/bin/nvc
Executable file
6
.config/shell/bin/nvc
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
# Purpose: edit nvim configuration while being cd'd into the directory that
|
||||
# most of the files live so they can easily be :e'd
|
||||
# Usage: nvc
|
||||
cd ~/.config/nvim/lua/blake \
|
||||
&& nvim ../../init.lua
|
|
@ -25,6 +25,11 @@ export PATH="$PATH:${XDG_DATA_HOME:-$HOME/.local}/bin:$SHELL_CONFIG_DIR/bin"
|
|||
# Basic default LS colors
|
||||
export LSCOLORS="Gxfxcxdxbxegedabagacad"
|
||||
|
||||
# `less` colors
|
||||
# shellcheck disable=SC2016
|
||||
export LESS='-R --use-color -Dd+g$Du+b'
|
||||
export MANPAGER="less -R --use-color -Dd+g -Du+b"
|
||||
|
||||
# Theme for zsh and nvim (soon™)
|
||||
COLOR_SCHEME=tokyonight
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue