Fixed bug with aliasing less when not installed
authorAndrew DeFaria <Andrew@DeFaria.com>
Tue, 4 Jan 2022 21:34:54 +0000 (13:34 -0800)
committerAndrew DeFaria <Andrew@DeFaria.com>
Tue, 4 Jan 2022 21:34:54 +0000 (13:34 -0800)
rc/bash_login
rc/gitignore
rc/sshconfig

index c0cf08f..4cfce77 100644 (file)
@@ -248,7 +248,7 @@ if [ "$TERM" = "hpterm"         -o \
 fi
 
 # Miscellaneous:
-if [ -x $(type -p less) ]; then
+if type -p less > /dev/null; then
    export LESS=eiXP"?f%f :[stdin] .?pt(%pt\%):?bt(%bt bytes):-.."
    alias more="less -sr"
    export PAGER="less -sr"
index ec446f5..f4a5bc1 100644 (file)
@@ -1,4 +1,3 @@
-.gitignore
 .project
 .pydevproject
 .includepath
index 0cda956..ea4e2f9 100644 (file)
@@ -1,13 +1,28 @@
 StrictHostKeyChecking no
 LogLevel ERROR
 
-Host jupiter cpanel github.com sandbox sandboxal
+Host 10.2.* sandbox*
+  ForwardAgent yes
+  StrictHostKeyChecking no
+  UserKnownHostsFile /dev/null
+  AddKeysToAgent yes
+  IdentitiesOnly yes
+  ForwardX11 yes
+  ForwardX11Trusted yes
+  User root
+
+Host 192.168.0.* mars earth defaria.com home
+  ForwardX11 yes
+  ForwardX11Trusted yes
+
+Host jupiter cpanel github.com
   ForwardX11 no
   ForwardX11Trusted no
 
 Host jupiter
   Port 2222
 
+# Macbook
 Host cpanel
   User andrewdefaria
 
@@ -23,22 +38,12 @@ Host sandboxal
   Hostname 10.2.99.106
   IdentityFile         ~/.ssh/cpanelkey
 
-Host sandbox
-  Hostname 10.2.99.60
-  IdentityFile         ~/.ssh/cpanelkey
-
 Host enterprise.cpanel.net
   IdentityFile         ~/.ssh/cpanelkey
 
-Host 10.2.* sandbox*
-  ForwardAgent yes
-  StrictHostKeyChecking no
-  UserKnownHostsFile /dev/null
-  AddKeysToAgent yes
-  IdentitiesOnly yes
-  ForwardX11 no
-  ForwardX11Trusted no
-  User root
+Host sandbox
+  Hostname 10.2.99.60
+  IdentityFile         ~/.ssh/cpanelkey
 
 Host *
   ServerAliveInterval 300