Linux Default Applications

Date: 2016-07-04

Proxy: This config below works for most programs:

http_proxy=http://10.203.0.1:5187/
https_proxy=http://10.203.0.1:5187/
ftp_proxy=http://10.203.0.1:5187/
rsync_proxy=http://10.203.0.1:5187/
no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"
HTTP_PROXY=http://10.203.0.1:5187/
HTTPS_PROXY=http://10.203.0.1:5187/
FTP_PROXY=http://10.203.0.1:5187/
RSYNC_PROXY=http://10.203.0.1:5187/
NO_PROXY="localhost,127.0.0.1,localaddress,.localdomain.com"

For NTLM proxy and more see: https://wiki.archlinux.org/index.php/proxy_settings

Environment Variables:
~/.bashrc

# default terminal
export TERM="xterm"
# default terminal supporting colors
export COLORTERM="xterm"
# default (command line) editor
export EDITOR="nano"
# default (command line) visual editor
export VISUAL=/usr/bin/vim
# default browser
export BROWSER="firefox"

# open file in default editor: ${VISUAL-${EDITOR-nano}}
alias open=${VISUAL-${EDITOR-nano}}

xdg-open is a desktop-independent tool for configuring the default applications of a user. Many applications invoke the xdg-open command internally.

https://wiki.archlinux.org/index.php/xdg-open

Available mime-types (with extensions)
/etc/mime.types
xdg-mime default APPLICATION MIMETYPE(S)
/etc/bash.bashrc # This file is read when ever an interactive shell is started (normal terminal) and all the commands specified in here are executed one by one.
/etc/profile # This file is read every time a user logs in, Thus all the commands executed in here will execute only once at the time of user logging in.

# Files that affect behaviour for only a specific user:
~/.bashrc # This file behaves the same way /etc/bash.bashrc file works just that it is executed only for a specific user. If you want to create an environment for yourself go ahead modify or create this file in your home directory.
~/.profile # This file is same as /etc/profile difference comes the way it is executed, This file is executed only when a user in whose home directory this file exists, logs in.
2010cookie-checkLinux Default Applications