-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc
45 lines (33 loc) · 762 Bytes
/
bashrc
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
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
export PS1="\[\033[38;5;14m\]\w\[$(tput sgr0)\] > \[$(tput sgr0)\]"
# Custom aliases
alias \
sudo="doas" \
lf="lf_image_preview.sh" \
# Enable vi-mode
set -o vi
# Set keyboard layout
setxkbmap pt
# Bind </> keys
xmodmap -e "keycode 97 = less greater less greater bar brokenbar"
# Make CLion work
export _JAVA_AWT_WM_NONREPARENTING=1
export AWT_TOOLKIT=MToolkit
wmname LG3D
# Set default editor to vim
export EDITOR="vim"
# lf struff
LFCD="$HOME/.config/lf/lfcd.sh"
if [ -f "$LFCD" ]; then
source "$LFCD"
fi
bind '"\C-o":"\C-ulf\C-m"'
# Clear
bind '"\C-l":"\C-uclear\C-m"'
# More PATHS
export PATH=$PATH:$HOME/.scripts/