initial commit
This commit is contained in:
commit
b78763d13e
2 changed files with 111 additions and 0 deletions
81
aliasrc
Normal file
81
aliasrc
Normal file
|
@ -0,0 +1,81 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Use neovim for vim if present.
|
||||||
|
[ -x "$(command -v nvim)" ] && alias vim="nvim" vimdiff="nvim -d"
|
||||||
|
|
||||||
|
# Use $XINITRC variable if file exists.
|
||||||
|
[ -f "$XINITRC" ] && alias startx="startx $XINITRC"
|
||||||
|
|
||||||
|
for command in mount umount apt dnf xbps-install pacman updatedb init systemctl service openrc-shutdown reboot sv; do
|
||||||
|
alias $command="doas $command"
|
||||||
|
done; unset command
|
||||||
|
|
||||||
|
|
||||||
|
if command -v doas > /dev/null
|
||||||
|
then
|
||||||
|
alias \
|
||||||
|
sudo="doas" \
|
||||||
|
usod="doas" \
|
||||||
|
suod="doas" \
|
||||||
|
duso="doas" \
|
||||||
|
osud="doas" \
|
||||||
|
duso="doas" \
|
||||||
|
daos="doas" \
|
||||||
|
daso="doas" \
|
||||||
|
ados="doas" \
|
||||||
|
odas="doas";
|
||||||
|
else
|
||||||
|
alias \
|
||||||
|
doas="sudo" \
|
||||||
|
usod="sudo" \
|
||||||
|
suod="sudo" \
|
||||||
|
duso="sudo" \
|
||||||
|
osud="sudo" \
|
||||||
|
duso="sudo" \
|
||||||
|
daos="sudo" \
|
||||||
|
daso="sudo" \
|
||||||
|
ados="sudo" \
|
||||||
|
odas="sudo";
|
||||||
|
fi
|
||||||
|
|
||||||
|
alias \
|
||||||
|
sl="ls" \
|
||||||
|
ls="ls -hN --color=auto" \
|
||||||
|
la="ls -ahN --color=auto" \
|
||||||
|
ll="ls -ahlN --color=auto"
|
||||||
|
|
||||||
|
alias \
|
||||||
|
lsb="lsblk -a" \
|
||||||
|
lsu="lsusb"
|
||||||
|
|
||||||
|
alias \
|
||||||
|
:q="exit" \
|
||||||
|
ZZ="exit" \
|
||||||
|
ZQ="exit" \
|
||||||
|
quit="exit"
|
||||||
|
|
||||||
|
alias \
|
||||||
|
cp="cp -iv" \
|
||||||
|
mk="mkdir -pv" \
|
||||||
|
rm="rm -rI" \
|
||||||
|
mv="mv -iv"
|
||||||
|
|
||||||
|
alias \
|
||||||
|
rsync="rsync -rtvzP"
|
||||||
|
|
||||||
|
alias \
|
||||||
|
t="tmux" \
|
||||||
|
ta="tmux new -A -s" \
|
||||||
|
tn="tmux new-session -t"
|
||||||
|
|
||||||
|
alias \
|
||||||
|
v="$EDITOR" \
|
||||||
|
e="$EDITOR" \
|
||||||
|
z="zathura" \
|
||||||
|
syu="pacman -Syu" \
|
||||||
|
n="nnn"
|
||||||
|
|
||||||
|
alias \
|
||||||
|
info="info --vi-keys"
|
||||||
|
|
||||||
|
[ -f $XDG_CONFIG_HOME/extrarc ] && . $XDG_CONFIG_HOME/extrarc
|
30
profile
Normal file
30
profile
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# profile file. Runs on login.
|
||||||
|
# Environmental variables are set here.
|
||||||
|
|
||||||
|
# Expanding $PATH to set ./local/bin
|
||||||
|
export PATH="$PATH:${$(find ~/.local/bin -type d -printf %p:)%%:}"
|
||||||
|
|
||||||
|
# Default programs:
|
||||||
|
export EDITOR="nvim"
|
||||||
|
export TERM="screen-256color"
|
||||||
|
export BROWSER="firefox"
|
||||||
|
|
||||||
|
# XDG
|
||||||
|
export XDG_CONFIG_HOME="$HOME/.config"
|
||||||
|
export XDG_DATA_HOME="$HOME/.local/share"
|
||||||
|
export XDG_CACHE_HOME="$HOME/.cache"
|
||||||
|
|
||||||
|
# Moving home config files to .config
|
||||||
|
|
||||||
|
export XINITRC="${XDG_CONFIG_HOME:-$HOME/.config}/x11/xinitrc"
|
||||||
|
export ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/zsh"
|
||||||
|
export GTK2_RC_FILES="${XDG_CONFIG_HOME:-$HOME/.config}/gtk-2.0/gtkrc-2.0"
|
||||||
|
export WGETRC="${XDG_CONFIG_HOME:-$HOME/.config}/wget/wgetrc"
|
||||||
|
export HISTFILE="${XDG_DATA_HOME:-$HOME/.local/share}/history"
|
||||||
|
|
||||||
|
# NNN file manager
|
||||||
|
export NNN_FCOLORS='0B0B04060006060009060B06'
|
||||||
|
|
||||||
|
export LESSHISTFILE="-"
|
Loading…
Add table
Add a link
Reference in a new issue