[Shell] Personal dotfiles and scripts to deploy them.
~.bashrc~ configuration file
Table of Contents
# -*- mode: org; -*-
#+PROPERTY: header-args :tangle "~/.bashrc" #+PROPERTY: header-args+ :shebang "#!/usr/bin/env bash"
#+SETUPFILE: /.emacs.d/templates/documents/gnu-default.setup #+INCLUDE: /.emacs.d/templates/documents/default-title.org
Early setup
If not running interactively, don't do anything.
[[$-!=**]]&&return
Environment variables
CLI editor
exportEDITOR="nvim"
GUI editor
exportVISUAL="emacsclient -nc -a emacs"
Alternate editor
exportALTERNATE_EDITOR=""
Terminal
We use the st terminal.
exportTERMINAL="st"
Session type
This ensures plank dock doesn't complain about not finding a session type.
exportXDG_SESSION_DESKTOP=x11
Path
Find executables stored in home directory.
exportPATH=${PATH}${HOME}bin${HOME}localbin
Bash prompt
PS1='[\u@\h \W]\$ '
Aliases
List
aliasl='lsd -l'
aliasll='lsd -la'
Password manager
aliaspm='passmenu'
Editors
aliasnv='nvim'
aliasec='emacsclient -nc -s main'
SSH
aliasvps='ssh root@192.162.71.223'
Emacs client
functionec(){emacsclient-nc-smain$@"
~Qt~ apps scaling
This is particularly useful for lmms.
exportQT_SCALE_FACTOR=1.2
exportQT_AUTO_SCREEN_SCALE_FACTOR=0
exportQT_SCREEN_SCALE_FACTORS=1
exportQT_DEVICE_PIXEL_RATIO=1