summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorleiyu3 <s444814187@gmail.com>2026-02-24 15:03:32 -0500
committerleiyu3 <s444814187@gmail.com>2026-02-24 15:03:32 -0500
commitb8fcc11c9b7f77b88e0880ececa735536d938f8d (patch)
tree33fef3c0d507925bbe7ffe28fb85ab441c19d917
downloaddotfiles-b8fcc11c9b7f77b88e0880ececa735536d938f8d.tar.gz
dotfiles-b8fcc11c9b7f77b88e0880ececa735536d938f8d.zip
add .bashrc and .profile
-rw-r--r--.bashrc41
-rw-r--r--.profile3
2 files changed, 44 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
new file mode 100644
index 0000000..2fe2640
--- /dev/null
+++ b/.bashrc
@@ -0,0 +1,41 @@
1#
2# ~/.bashrc
3#
4
5# If not running interactively, don't do anything
6[[ $- != *i* ]] && return
7
8export PATH="$HOME/.local/bin:$PATH"
9export LEDGER_FILE="$HOME/Finance/finance.journal"
10
11alias ls='ls --color=auto'
12alias grep='grep --color=auto'
13alias vim='nvim'
14alias v='nvim'
15alias vi='nvim'
16alias neofetch='fastfetch'
17alias nv='nvim'
18alias pacman='sudo pacman'
19
20XDG_CONFIG_HOME=~/.config
21
22set -o vi
23
24PS1='[\u@\w]\$ '
25
26osc7_cwd() {
27 local strlen=${#PWD}
28 local encoded=""
29 local pos c o
30 for (( pos=0; pos<strlen; pos++ )); do
31 c=${PWD:$pos:1}
32 case "$c" in
33 [-/:_.!\'\(\)~[:alnum:]] ) o="${c}" ;;
34 * ) printf -v o '%%%02X' "'${c}" ;;
35 esac
36 encoded+="${o}"
37 done
38 printf '\e]7;file://%s%s\e\\' "${HOSTNAME}" "${encoded}"
39}
40PROMPT_COMMAND=${PROMPT_COMMAND:+${PROMPT_COMMAND%;}; }osc7_cwd
41
diff --git a/.profile b/.profile
new file mode 100644
index 0000000..b65b027
--- /dev/null
+++ b/.profile
@@ -0,0 +1,3 @@
1export PATH="$HOME/.local/bin:$PATH"
2
3export MOZ_ENABLE_WAYLAND=1