aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%/.bashrc
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2025-12-16 12:37:53 +0100
committerEgor Tensin <egor@tensin.name>2025-12-16 12:37:59 +0100
commita50a4e1a6e467383a33cdc04e81c4c6709b27017 (patch)
treea653073510f7594cfb7fc760bc17c2f306bb1540 /%HOME%/.bashrc
parentos.sh: remove unused distros (diff)
downloadlinux-home-a50a4e1a6e467383a33cdc04e81c4c6709b27017.tar.gz
linux-home-a50a4e1a6e467383a33cdc04e81c4c6709b27017.zip
os.sh: remove
I don't think these routines work anymore + I haven't used them in a while.
Diffstat (limited to '%HOME%/.bashrc')
-rw-r--r--%HOME%/.bashrc8
1 files changed, 4 insertions, 4 deletions
diff --git a/%HOME%/.bashrc b/%HOME%/.bashrc
index 8b5d7c2..8db79ad 100644
--- a/%HOME%/.bashrc
+++ b/%HOME%/.bashrc
@@ -33,7 +33,6 @@ export HISTSIZE=20000
[ -r "$HOME/.bash_utils/cxx.sh" ] && source "$HOME/.bash_utils/cxx.sh"
[ -r "$HOME/.bash_utils/distr.sh" ] && source "$HOME/.bash_utils/distr.sh"
[ -r "$HOME/.bash_utils/git.sh" ] && source "$HOME/.bash_utils/git.sh"
-[ -r "$HOME/.bash_utils/os.sh" ] && source "$HOME/.bash_utils/os.sh"
[ -r "$HOME/.bash_utils/path.sh" ] && source "$HOME/.bash_utils/path.sh"
[ -r "$HOME/.bashrc_local" ] && source "$HOME/.bashrc_local"
@@ -95,10 +94,11 @@ alias sed='sed --follow-symlinks'
# Use in a pipeline:
# command | copy
-if os_is_linux; then
- alias copy='xclip -sel clip'
-elif os_is_macos; then
+if command -v pbcopy &> /dev/null; then
+ # MacOS
alias copy='pbcopy'
+elif command -v xclip &> /dev/null; then
+ alias copy='xclip -sel clip'
fi
# Make sure ssh-copy-id copies public keys along with their comments.