summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-09-14 13:47:41 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-09-14 13:47:41 +0800
commit8b443c9ad21e04d01f7747b20bfb099a36af3821 (patch)
treef9fa3d6926de9649ace3056a7775fc6e3c519ce2
parent44c3235910e6bc7496a6c871b3a10ce6f4d44374 (diff)
fixed vim w/ sudo no clipboard by adding -E(env) and updates
-rwxr-xr-xaliases.zsh5
-rwxr-xr-xutility.zsh8
2 files changed, 8 insertions, 5 deletions
diff --git a/aliases.zsh b/aliases.zsh
index 73b49b2..8ce8314 100755
--- a/aliases.zsh
+++ b/aliases.zsh
@@ -335,7 +335,7 @@ alias pipreqsi='installpipreqs'
# better discord
#alias discord='discord-screenaudio'
# better wget
-alias wget='aria2c'
+alias wget='aria2c -x 16'
# audios
alias audio='pulsemixer'
alias audiod='pipewire-pulse'
@@ -453,6 +453,7 @@ alias packagef="/usr/bin/cat /tmp/yaySl | cut -d' ' -f2 | fzf --multi --ansi --p
alias package='packagelist'
alias pi='pacman --noconfirm -S --needed'
alias pif='pacman --noconfirm --force -S --needed'
+alias pifd='pacman -Sd --needed --nodeps'
#alias ps='pacman --noconfirm -S --needed'
alias pr='pacman --noconfirm -Rns'
alias pri='pacman --noconfirm -S'
@@ -524,6 +525,8 @@ alias processfind='ps -aux | grep -v grep | grep'
alias processf='processfind'
alias pf='processfind'
+alias code='cursor'
+
# help
alias help='tldr'
diff --git a/utility.zsh b/utility.zsh
index b35e974..ca65d7e 100755
--- a/utility.zsh
+++ b/utility.zsh
@@ -131,7 +131,7 @@ function vim () {
if [ ! "$@" ]; then
if [ ! -w "$(pwd)" ]; then
printf "Opening vim with sudo...\n"
- sudo $HOME/.local/bin/lvim
+ sudo -E $HOME/.local/bin/lvim
return
else
printf "Opening vim...\n"
@@ -152,7 +152,7 @@ function vim () {
if [ ! -w "$(dirname $@)" ]
then
printf "Opening vim with sudo...\n"
- sudo $HOME/.local/bin/lvim "$@"
+ sudo -E $HOME/.local/bin/lvim "$@"
if [ ! -e "$@" ]
then
#printf "File \"$@\" is Empty, auto deleted...\n"
@@ -183,7 +183,7 @@ function vim () {
if [ ! -w "$@" ]
then
printf "Opening vim with sudo...\n"
- sudo $HOME/.local/bin/lvim "$@"
+ sudo -E $HOME/.local/bin/lvim "$@"
return
elif [[ -e "$@" ]]; then
printf "Opening vim...\n"
@@ -329,7 +329,7 @@ function ga ()
if [[ -n "${1+x}" ]]; then
git add $@ -f
else
- git add -A -f
+ git add -A
fi
}