Compare commits

...

4 Commits

Author SHA1 Message Date
Hekuran
20ad2d1df8
Merge 3440fb3926cd4bc149b78d8332255a34122dec50 into 628ed4dc995f3c09e33c24a01c817c18b1a268af 2024-07-16 00:25:47 +05:30
Luke Smith
628ed4dc99
Merge branch 'master' of github.com:LukeSmithxyz/voidrice 2024-07-15 13:46:42 -04:00
Luke Smith
a9cde940c2
close #1292 2024-07-15 13:46:30 -04:00
Hekuran
3440fb3926 Removing the need of ~/.zprofile
When we have this, and `/etc/zsh/zshenv` containing:
ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/zsh"
then we will not need ~/.zprofile
2024-03-04 16:09:17 +01:00
2 changed files with 7 additions and 1 deletions

1
.config/zsh/.zprofile Symbolic link
View File

@ -0,0 +1 @@
../shell/profile

View File

@ -79,8 +79,13 @@ case "$chosen" in
💾*)
chosen="${chosen%% *}"
chosen="${chosen:1}" # This is a bashism.
parttype="$(echo "$lsblkoutput" | grep "$chosen")"
attemptmount || getmount
sudo -A mount "$chosen" "$mp" -o uid="$(id -u)",gid="$(id -g)"
case "${parttype##* }" in
vfat) sudo -A mount -t vfat "$chosen" "$mp" -o rw,umask=0000 ;;
btrfs) sudo -A mount "$chosen" "$mp" ;;
*) sudo -A mount "$chosen" "$mp" -o uid="$(id -u)",gid="$(id -g)" ;;
esac
notify-send "💾Drive Mounted." "$chosen mounted to $mp."
;;