summaryrefslogtreecommitdiff
path: root/bashrc.org
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2021-08-15 19:12:53 -0700
committerMarius Peter <marius.peter@tutanota.com>2021-08-15 19:12:53 -0700
commit8ed7a7d3fd21496dce8682953b11ed1d72ea5fe3 (patch)
tree3f34389f7297863689b523eb3d5ad8bc9b543586 /bashrc.org
parent6952f083315ff0e7342913e929d55c75264eea9f (diff)
bashrc
Diffstat (limited to 'bashrc.org')
-rw-r--r--bashrc.org131
1 files changed, 131 insertions, 0 deletions
diff --git a/bashrc.org b/bashrc.org
new file mode 100644
index 0000000..053bbab
--- /dev/null
+++ b/bashrc.org
@@ -0,0 +1,131 @@
+# -*- mode: org; -*-
+
+#+TITLE: ~.bashrc~ configuration file
+#+AUTHOR: Marius Peter
+#+DATE: <2021-08-15 Sun>
+
+#+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.
+
+#+BEGIN_SRC shell
+ [[ $- != *i* ]] && return
+#+END_SRC
+
+
+* Environment variables
+
+
+** CLI editor
+
+#+BEGIN_SRC shell
+ export EDITOR="nvim"
+#+END_SRC
+
+
+** GUI editor
+
+#+BEGIN_SRC shell
+ export VISUAL="emacsclient -nc -a emacs"
+#+END_SRC
+
+
+** Alternate editor
+
+#+BEGIN_SRC shell
+ export ALTERNATE_EDITOR=""
+#+END_SRC
+
+
+** Terminal
+
+#+BEGIN_SRC shell
+ export TERMINAL="xfce4-terminal"
+#+END_SRC
+
+This ensures ~plank~ dock doesn't complain about not finding a
+session type.
+
+#+BEGIN_SRC shell
+ export XDG_SESSION_TYPE=x11
+#+END_SRC
+
+
+** Path
+
+Find executables stored in home directory.
+
+#+BEGIN_SRC shell
+ export PATH=${PATH}:${HOME}/bin
+#+END_SRC
+
+
+* Bash prompt
+
+#+BEGIN_SRC shell
+ PS1='[\u@\h \W]\$ '
+#+END_SRC
+
+
+* Aliases
+
+
+** List
+
+#+BEGIN_SRC shell
+ alias ls='ls --color=auto'
+ alias l='ls -l'
+ alias ll='ls -la'
+#+END_SRC
+
+
+** Trash
+
+#+BEGIN_SRC shell
+ alias tr='trash'
+#+END_SRC
+
+
+** Password manager
+
+#+BEGIN_SRC shell
+ alias pm='passmenu'
+#+END_SRC
+
+
+** Editors
+
+#+BEGIN_SRC shell
+ alias nv='nvim'
+ alias ec='emacsclient -nc -s main'
+#+END_SRC
+
+
+* Emacs client
+
+#+BEGIN_SRC shell
+ function ec() {
+ emacsclient -nc -s main "$@"
+ }
+ export -f ec
+#+END_SRC
+
+
+* ~Qt~ apps scaling
+
+This is particularly useful for ~lmms~.
+
+#+BEGIN_SRC shell
+
+ export QT_SCALE_FACTOR=1.2
+ export QT_AUTO_SCREEN_SCALE_FACTOR=0
+ export QT_SCREEN_SCALE_FACTORS=1
+ export QT_DEVICE_PIXEL_RATIO=1
+#+END_SRC
Copyright 2019--2024 Marius PETER