]> git.nbdom.net Git - nb.git/commitdiff
psql
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 14 Mar 2015 22:00:00 +0000 (22:00 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 14 Mar 2015 22:00:00 +0000 (22:00 +0000)
etc/bashrc.alias

index f0735ce419937af062777e92ac7ea08a6ebc40da..1cdd1c6615defcfc6fb851a40170e28b4e921368 100644 (file)
@@ -14,10 +14,11 @@ alias password-gener='apg -m 12 -x 12 -a 0 -M L|head -1;'
 alias mysqlshow-view="mysql -e \"SHOW FULL TABLES WHERE TABLE_TYPE LIKE 'VIEW'\""
 alias nmap-ping="nmap -sP -PE -PS443 -PA21,22,23,80,3389"
 alias arp-list="arp -an"
-[ "$UID" == "0" ] && grep -q '^_\?postgres:' /etc/passwd && alias psql='sudo -u postgres psql'
 alias pdf2jpegs='gs -dNOPAUSE -sDEVICE=jpeg -dFirstPage=1 -dLastPage=5 -sOutputFile=pdf2jpegs%d.jpg -dJPEGQ=100 -r500 -c quit'
 alias ls-time="tree -tDphug"
 
+#[ "$UID" == "0" ] && grep -q '^_\?postgres:' /etc/passwd && alias psql='sudo -u postgres psql'
+
 #--------------------------------------------------------------------------------
 # Etherwake
 # Cable: alias advent-on="etherwake -i eth0 00:22:68:7b:fb:99 -D -b"