retabbing
This commit is contained in:
parent
0c2143cf87
commit
2ccaa4848b
3 changed files with 32 additions and 30 deletions
|
@ -25,7 +25,7 @@ export LESS_TERMCAP_se="$(printf '%b' '[0m')"
|
||||||
export LESS_TERMCAP_us="$(printf '%b' '[1;32m')"
|
export LESS_TERMCAP_us="$(printf '%b' '[1;32m')"
|
||||||
export LESS_TERMCAP_ue="$(printf '%b' '[0m')"
|
export LESS_TERMCAP_ue="$(printf '%b' '[0m')"
|
||||||
export LESSOPEN="| /usr/bin/highlight -O ansi %s 2>/dev/null"
|
export LESSOPEN="| /usr/bin/highlight -O ansi %s 2>/dev/null"
|
||||||
export ANSIBLE_NOCOWS=1 # Stop those fucking cows in Ansible
|
export ANSIBLE_NOCOWS=1 # Stop those fucking cows in Ansible
|
||||||
export DOTS_PACKAGE="dots"
|
export DOTS_PACKAGE="dots"
|
||||||
|
|
||||||
# Color palette for console dialogs in tools such as nmtui and whiptail
|
# Color palette for console dialogs in tools such as nmtui and whiptail
|
||||||
|
|
|
@ -2,51 +2,53 @@
|
||||||
# shellcheck disable=SC2142
|
# shellcheck disable=SC2142
|
||||||
# sudo not required for some system commands
|
# sudo not required for some system commands
|
||||||
for command in mount umount xbps-install xbps-remove updatedb su shutdown poweroff reboot; do
|
for command in mount umount xbps-install xbps-remove updatedb su shutdown poweroff reboot; do
|
||||||
# shellcheck disable=SC2139
|
# shellcheck disable=SC2139
|
||||||
command -v $command 1>/dev/null 2>&1 && alias $command="sudo $command"
|
command -v $command 1>/dev/null 2>&1 && alias $command="sudo $command"
|
||||||
done
|
done
|
||||||
unset command
|
unset command
|
||||||
|
|
||||||
# Colorization
|
# Colorization
|
||||||
alias \
|
alias \
|
||||||
ls="ls --color=auto --group-directories-first" \
|
ls="ls --color=auto --group-directories-first" \
|
||||||
grep="grep --color=auto" \
|
grep="grep --color=auto" \
|
||||||
diff="diff --color=auto" \
|
diff="diff --color=auto" \
|
||||||
ccat="highlight --out-format=ansi" \
|
ccat="highlight --out-format=ansi" \
|
||||||
grep="grep --color=auto" \
|
grep="grep --color=auto" \
|
||||||
diff="diff --color=auto" \
|
diff="diff --color=auto" \
|
||||||
ip="ip -color=auto"
|
ip="ip -color=auto"
|
||||||
|
|
||||||
# Common flags
|
# Common flags
|
||||||
alias \
|
alias \
|
||||||
vim="nvim" \
|
vim="nvim" \
|
||||||
cp="cp -iv" \
|
cp="cp -iv" \
|
||||||
mv="mv -iv" \
|
mv="mv -iv" \
|
||||||
rm="rm -vI" \
|
rm="rm -vI" \
|
||||||
bc="bc -ql" \
|
bc="bc -ql" \
|
||||||
mkd="mkdir -pv" \
|
mkd="mkdir -pv" \
|
||||||
tldr="tldr -s" \
|
tldr="tldr -s" \
|
||||||
ffmpeg="ffmpeg -hide_banner" \
|
ffmpeg="ffmpeg -hide_banner" \
|
||||||
nvidia-settings="nvidia-settings --config=\$XDG_CONFIG_HOME/nvidia/settings"
|
nvidia-settings="nvidia-settings --config=\$XDG_CONFIG_HOME/nvidia/settings"
|
||||||
|
|
||||||
# Shortening
|
# Shortening
|
||||||
alias \
|
alias \
|
||||||
ka="killall" \
|
ka="killall" \
|
||||||
ll="ls -lhpAN --color=auto --group-directories-first"
|
ll="ls -lhpAN --color=auto --group-directories-first"
|
||||||
|
|
||||||
# Quasi functions
|
# Quasi functions
|
||||||
alias \
|
alias \
|
||||||
xgetkeys="xev | sed -ne '/^KeyPress/,/^$/p'" \
|
xgetkeys="xev | sed -ne '/^KeyPress/,/^$/p'" \
|
||||||
whed='() { $EDITOR $(which "$1") }' \
|
whed='() { $EDITOR $(which "$1") }' \
|
||||||
xpick="xprop | awk '
|
xpick="xprop | awk '
|
||||||
/^WM_CLASS/{sub(/.* =/, \"instance:\"); sub(/,/, \"\nclass:\"); print}
|
/^WM_CLASS/{sub(/.* =/, \"instance:\"); sub(/,/, \"\nclass:\"); print}
|
||||||
/^WM_NAME/{sub(/.* =/, \"title:\"); print}'"
|
/^WM_NAME/{sub(/.* =/, \"title:\"); print}'"
|
||||||
|
|
||||||
# xbps package manager aliases
|
# Void specific aliases
|
||||||
|
# shellcheck disable=SC2139
|
||||||
alias \
|
alias \
|
||||||
x="xbps-install" \
|
x="xbps-install" \
|
||||||
xr="xbps-remove" \
|
xr="xbps-remove" \
|
||||||
xsi="xpkg -a |\
|
usv="SVDIR=\"${HOME}/.local/sv\" sv" \
|
||||||
|
xsi="xpkg -a |\
|
||||||
fzf -m --preview 'xq {1} | \\grep -e pkgver -e license -e short_desc -e installed_size -e maintainer -e repository -e homepage' --preview-window=right:66%:wrap |\
|
fzf -m --preview 'xq {1} | \\grep -e pkgver -e license -e short_desc -e installed_size -e maintainer -e repository -e homepage' --preview-window=right:66%:wrap |\
|
||||||
xargs -ro xi"
|
xargs -ro xi"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# vim: set ft=sh:
|
# vim: set ft=sh:
|
||||||
venv_prompt() {
|
venv_prompt() {
|
||||||
[[ -n ${VIRTUAL_ENV} ]] || return
|
[[ -n ${VIRTUAL_ENV} ]] || return
|
||||||
echo -e "%F{yellow}%f ${VIRTUAL_ENV:t:gs/%/%%}"
|
echo -e "%F{yellow}%f ${VIRTUAL_ENV:t:gs/%/%%}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function write_title_cmd() {
|
function write_title_cmd() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue