From 025d719a23363d59f038ec8dcf52e324125a5a1b Mon Sep 17 00:00:00 2001 From: Eragos Date: Thu, 14 Apr 2016 20:26:22 +0200 Subject: [PATCH] cleanup aliases, add .wgetrc, small .screenrc changes --- .screenrc | 9 +++++++++ .wgetrc | 38 ++++++++++++++++++++++++++++++++++++++ aliases | 36 +++++++++++++++++------------------- 3 files changed, 64 insertions(+), 19 deletions(-) create mode 100644 .wgetrc diff --git a/.screenrc b/.screenrc index c71992e..85c651d 100644 --- a/.screenrc +++ b/.screenrc @@ -1,6 +1,15 @@ hardstatus off hardstatus alwayslastline hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m-%d %{W} %c %{g}]' + +# Set a large scrollback buffer defscrollback 100000 + +# Set termcapinfo termcapinfo xterm* ti@:te@ + +# Disable the startup message startup_message off + +# Always start `screen` with UTF-8 enabled (`screen -U`) +defutf8 on diff --git a/.wgetrc b/.wgetrc new file mode 100644 index 0000000..249f360 --- /dev/null +++ b/.wgetrc @@ -0,0 +1,38 @@ +# Use the server-provided last modification date, if available +timestamping = on + +# Do not go up in the directory structure when downloading recursively +no_parent = on + +# Wait 60 seconds before timing out. This applies to all timeouts: DNS, connect and read. (The default read timeout is 15 minutes!) +timeout = 60 + +# Retry a few times when a download fails, but don’t overdo it. (The default is 20!) +tries = 3 + +# Retry even when the connection was refused +retry_connrefused = on + +# Use the last component of a redirection URL for the local file name +trust_server_names = on + +# Follow FTP links from HTML documents by default +follow_ftp = on + +# Add a `.html` extension to `text/html` or `application/xhtml+xml` files that lack one, or a `.css` extension to `text/css` files that lack one +adjust_extension = on + +# Use UTF-8 as the default system encoding +# Disabled as it makes `wget` builds that don’t support this feature unusable. +# Does anyone know how to conditionally configure a wget setting? +# http://unix.stackexchange.com/q/34730/6040 +#local_encoding = UTF-8 + +# Ignore `robots.txt` and `` +robots = off + +# Print the HTTP and FTP server responses +server_response = on + +# Disguise as IE 9 on Windows 7 +user_agent = Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0) \ No newline at end of file diff --git a/aliases b/aliases index e90b15c..adc9941 100755 --- a/aliases +++ b/aliases @@ -1,28 +1,26 @@ -# Dir navigation +# navigation alias ..='cd ..' alias ...='cd ../..' alias ....='cd ../../..' +alias .....='cd ../../../..' alias ~='cd ~' +# shortcuts +alias d='du -h -d=1' +alias g='git' +alias h='history' + +# defaults +alias df='df -h' + +alias grep='grep --color=auto' +alias fgrep='fgrep --color=auto' +alias egrep='egrep --color=auto' + alias la='ls -la' alias ls='ls -GFh' +alias tmux='tmux -2' -# Utilities -alias a="ack -ia" -alias b="bundle exec" -alias c="pygmentize -O style=monokai -f console256 -g" -alias d="du -h -d=1" -alias df="df -h" -alias g="git" -alias grep='GREP_COLOR="1;37;45" LANG=C grep --color=auto' -alias h="history" -alias httpdump="sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E \"Host\: .*|GET \/.*\"" -alias ip="curl -s http://checkip.dyndns.com/ | sed 's/[^0-9\.]//g'" -alias localip="ipconfig getifaddr en1" -#alias mp="mvim -p" -#alias rkt="racket -il xrepl" -alias tmux="tmux -2" -alias view="vim -p -R" -alias vp="vim -p" - +alias view='vim -p -R' +alias vp='vim -p'