diff rc/bashrc @ 738:687d9ee4a5c9

[bashrc] Skip curl check for 0paste aliases
author nanaya <me@nanaya.net>
date Thu, 09 Jan 2025 03:22:45 +0900
parents 002d6aa2d76e
children
line wrap: on
line diff
--- a/rc/bashrc	Thu Jan 09 03:16:29 2025 +0900
+++ b/rc/bashrc	Thu Jan 09 03:22:45 2025 +0900
@@ -274,10 +274,8 @@
 fi
 unset _rm
 
-if command -v curl > /dev/null 2>&1; then
-  alias 0p="gzip | curl 'https://paste.myconan.net/pastes.txt' -F 'paste[paste_gzip]=@-'"
-  alias 0pp="gzip | curl 'https://paste.myconan.net/pastes.txt' -F 'paste[is_private]=1' -F 'paste[paste_gzip]=@-'"
-fi
+alias 0p="gzip | curl 'https://paste.myconan.net/pastes.txt' -F 'paste[paste_gzip]=@-'"
+alias 0pp="gzip | curl 'https://paste.myconan.net/pastes.txt' -F 'paste[is_private]=1' -F 'paste[paste_gzip]=@-'"
 
 unset _os
 unset _uid