From 0649df5f49e497749b5ded4b675c6874d55fb9e8 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Tue, 8 Dec 2020 18:15:34 +0100 Subject: Initial commit (FreeBSD and Gentoo) --- Gentoo/user/.bashrc | 101 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 Gentoo/user/.bashrc (limited to 'Gentoo/user/.bashrc') 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 @@ +# .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}' -- cgit v1.3