mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
Compare commits
5 Commits
d1e5ad9ec8
...
776de50d5e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
776de50d5e | ||
|
|
bca6b403eb | ||
|
|
42f3efb4b0 | ||
|
|
7253705594 | ||
|
|
5a3a9936b6 |
@ -58,7 +58,22 @@ cmd extract ${{
|
||||
printf "%s\n\t" "$fx"
|
||||
printf "extract?[y/N]"
|
||||
read ans
|
||||
[ $ans = "y" ] && aunpack $fx
|
||||
[ $ans = "y" ] && {
|
||||
case $fx in
|
||||
*.tar.bz2) tar xjf $fx ;;
|
||||
*.tar.gz) tar xzf $fx ;;
|
||||
*.bz2) bunzip2 $fx ;;
|
||||
*.rar) unrar e $fx ;;
|
||||
*.gz) gunzip $fx ;;
|
||||
*.tar) tar xf $fx ;;
|
||||
*.tbz2) tar xjf $fx ;;
|
||||
*.tgz) tar xzf $fx ;;
|
||||
*.zip) unzip $fx ;;
|
||||
*.Z) uncompress $fx ;;
|
||||
*.7z) 7z x $fx ;;
|
||||
*.tar.xz) tar xf $fx ;;
|
||||
esac
|
||||
}
|
||||
}}
|
||||
|
||||
cmd delete ${{
|
||||
|
||||
11
.local/bin/bookmarkthis
Normal file
11
.local/bin/bookmarkthis
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
bookmark="$(xclip -o)"
|
||||
file="$HOME/.local/share/larbs/snippets"
|
||||
|
||||
if grep "^$bookmark$" "$file"; then
|
||||
notify-send "Oops." "Already bookmarked!"
|
||||
else
|
||||
notify-send "Bookmark added!" "$bookmark is now saved to the file."
|
||||
echo "$bookmark" >> "$file"
|
||||
fi
|
||||
3
.local/bin/xdg-terminal-exec
Executable file
3
.local/bin/xdg-terminal-exec
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
"$TERMINAL" -e "$@"
|
||||
Loading…
x
Reference in New Issue
Block a user