1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
# .bashrc
# User specific aliases and functions
#
# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output. So make sure this doesn't display
# anything or bad things will happen !
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi
source /home/sgs/.git-prompt.sh
##PS1="[\u@\[\033[0;32m\]\h\[\033[0;37m\] \w]\\$ "; export PS1
export PS1='[\u@\[\033[00;32m\]\h\[\033[00m\] \w$(__git_ps1 " (%s)")]\\$ '
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
## shopt -s checkwinsize
export HISTSIZE=10000
export HISTCONTROL=ignorespace:erasedups
shopt -s checkwinsize
alias ls='ls --color=auto'
alias s='screen -r'
alias tmplayer='mplayer -fs -ao alsa:noblock:device=hw=1.7'
alias mplayer='mplayer -fs'
alias mpv='mpv -fs'
alias youtube-dl='/usr/bin/youtube-dl -f best -o "%(title)s.%(ext)s"'
##alias horizons='telnet ssd.jpl.nasa.gov 6775'
##alias lgdm='/usr/libexec/lightdm/gdmflexiserver -l'
alias lgdm='/usr/bin/dm-tool switch-to-user videouser'
alias zgdm='/usr/bin/dm-tool switch-to-user zuzanna'
alias aoslo='curl -4 wttr.in/Oslo'
#####################
# audio #
alias adefault='pacmd set-card-profile 0 off && pacmd set-card-profile 1 output:analog-stereo+input:analog-stereo'
alias ahdmi='pacmd set-card-profile 1 off && pacmd set-card-profile 0 output:hdmi-stereo-extra1'
#########
alias ssocks='ssh -2 -4 -N -n -T -D 9999'
#export GREP_OPTIONS="--exclude-dir=.svn"
export EDITOR=emacs
#export PYTHONSTARTUP=~/.pythonrc.py
#export ANSIBLE_HOSTS=~/.ansible.hosts
export QT_SELECT=qt5
##export XTERM_SHELL=/bin/bash
##export XTERM_LOCALE=en_US.utf8
# export TSOCKS_CONF_FILE='/home/sgs/.tsocks.conf'
# export TSOCKS_USERNAME='foo'
# export TSOCKS_PASSWORD='bar'
alias aleksander_video='/usr/local/bin/aleksander_video.py -d /mnt/edisk/phome/sgs -A /mnt/edisk/Video/Clips/Family/Aleks'
# ./fgallery -i -c txt --index http://gnulover.simeonov.no/galleries/ --quality 100 ~/pics/2016/2016-Processed-Web ~/2016 2016
## nvidia-settings ##
# if [[ $HOSTNAME != "BlackmoreX" ]]
# then
# alias dmonitoronly='xrandr --output DVI-I-1 --mode 1920x1080 --primary --output HDMI-1 --off'
# alias dtvonly='xrandr --output HDMI-1 --mode 1920x1080 --primary --output DVI-I-1 --off'
# alias dclone='xrandr --output DVI-I-1 --mode 1920x1080 --output HDMI-1 --mode 1920x1080'
# else
# alias dmonitoronly='nvidia-settings --assign CurrentMetaMode="DFP-0: 1920x1080 +0+0"'
# alias dtvonly='nvidia-settings --assign CurrentMetaMode="DFP-1: 1920x1080 +0+0"'
# alias dclone='nvidia-settings --assign CurrentMetaMode="DFP-0: 1920x1080 +0+0, DFP-1: 1920x1080 +0+0"'
# fi
# alias dmonitoronly='xrandr --output DVI-I-1 --mode 1920x1080 --primary --output HDMI-1 --off'
# alias dtvonly='xrandr --output HDMI-1 --mode 1920x1080 --primary --output DVI-I-1 --off'
# alias dclone='xrandr --output DVI-I-1 --mode 1920x1080 --output HDMI-1 --mode 1920x1080'
alias dleftonly='xrandr --output HDMI-1 --mode 2560x1440 --primary --output DVI-D-1 --off'
alias dboth='xrandr --output HDMI-1 --mode 2560x1440 --primary --output DVI-D-1 --mode 2560x1440 --right-of HDMI-1'
alias dclone='xrandr --output HDMI-1 --mode 2560x1440 --output DVI-D-1 --mode 2560x1440'
#####################
## Programming ##
export PYTHONPATH=~/.pythonpath
alias eminicms='source /home/sgs/development/venvs/django_markwhat/bin/activate'
alias ppsql='psql -h db.pichove.org'
#################
export FLASK_DEBUG=1
export FLASK_ENV=development
# export FLASK_APP=utils.py
#export TERM=xterm-256color
# export TERMCAP=
alias invoke='/home/sgs/development/venvs/venvInvoke/bin/invoke'
# cvlc -vvv alsa://hw:1,0 --sout '#transcode{vcodec=none,acodec=mpga,ab=128,channels=2,samplerate=44100,scodec=none}:rtp{dst=10.0.1.16,port=1234,sdp=rtsp://10.0.1.16:8001/test.sdp}'
|