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