changeset 483:42c6bdaeeeaa

Updated aliases and init
author unexist
date Thu, 29 Nov 2018 09:25:47 +0100
parents 93ac94dc3feb
children e97215c5d82c
files .xinitrc .zshalias
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/.xinitrc	Thu Nov 29 09:25:32 2018 +0100
+++ b/.xinitrc	Thu Nov 29 09:25:47 2018 +0100
@@ -37,7 +37,7 @@
 
 # xrandr
 if [ -e /usr/bin/xrandr ] ; then
-  if [ "xsubtle" = "x$1" ] ; then
+  if [ "xazath" = "x`hostname`" ] ; then
     xrandr \
       --output eDP-1 --primary --mode 1366x768 --pos 0x0 \
       --output DP-2-2 --mode 1920x1200 --pos 768x0 --right-of eDP-1 \
--- a/.zshalias	Thu Nov 29 09:25:32 2018 +0100
+++ b/.zshalias	Thu Nov 29 09:25:47 2018 +0100
@@ -142,7 +142,7 @@
 
 # Twttr
 if [ -e "/usr/bin/psql" ] ; then
-  alias tsql="psql -U twitter twittr -h localhost"
+  alias tsql="PGPASSWORD=twttr psql -U twttr twttr -h localhost"
 fi  
 
 # xrandr
@@ -156,3 +156,10 @@
     --output eDP-1 --primary --mode 1366x768 --pos 0x0 \
     --output DP-2-2 --mode 1920x1080 --pos 768x0 --right-of eDP-1 --dpi 96"
 fi
+
+# netstat
+if [ -e "/bin/netstat" ] ; then
+  function port2proc {
+    sudo netstat -ltnp | \grep -w ":$1"
+  }
+fi