blob: 45cdd6d529ca2f802bebcfa122bf9b7f5e33e221 (
plain)
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
|
# -*- 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
We use the =st= terminal.
#+BEGIN_SRC shell
export TERMINAL="st"
#+END_SRC
** Session type
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:${HOME}/.local/bin
#+END_SRC
* Bash prompt
#+BEGIN_SRC shell
PS1='[\u@\h \W]\$ '
#+END_SRC
* Aliases
** List
#+BEGIN_SRC shell
alias l='lsd -l'
alias ll='lsd -la'
#+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
** SSH
#+begin_src shell
alias vps='ssh root@192.162.71.223'
#+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
|