Miscellaneous DWL and Update changes

This commit is contained in:
2024-04-07 13:07:53 -07:00
parent 5e56166650
commit 52e892a323
6 changed files with 141 additions and 9 deletions

View File

@@ -8,7 +8,7 @@ PS1='${debian_chroot:+($debian_chroot)}\[\033[01;41m\]$(hostname)\[\033[00m\]\[\
#
# Variables
#
export EDITOR=nvim
export EDITOR=n
export PATH=~/bin:$PATH
#
@@ -19,24 +19,37 @@ alias q=exit
alias a=clear
alias h=history
alias e=$EDITOR
alias n=nvim
#
# Functions
#
function myvim () {
gvim $1 >& /dev/null &
disown %1
gvim $1 >& /dev/null &
disown %1
}
function n () {
/opt/neovim/nvim $* || nvim $*
}
function hgrep () {
history | grep $1
history | grep $1
}
function pgrep () {
ps aux | grep $1
ps aux | grep $1
}
function u2d () {
apt update && apt full-upgrade -y && apt autoremove -y
~mahesh/git/snips/get_neovim.sh
~mahesh/git/snips/get_wezterm.sh
cd
if [ -e /etc/arch-release ]; then
pacman -Syu
elif [ -e /etc/debian_release ]; then
apt update && apt full-upgrade -y && apt autoremove -y
else
echo "Auto update not supported."
exit 1
fi
}