-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bashrc
39 lines (33 loc) · 1.31 KB
/
.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
# -*- mode: sh -*-
## .bashrc
# I used the bullet headings in this file because having mutiple comment
# syntaxes next to each other does not work in this file. Is it a bug? I
# confirmed additionally that this is also the case for lua files. I think I
# have to either try to fix this myself in the outshine code or just switch to
# the bullet syntax, at least for non-elisp files.
### something I do not yet understand
# No idea what this stuff does.
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
PS1='[\u@\h \W]\$ '
### aliases
alias dotfiles='/usr/bin/git --git-dir=$HOME/dotfiles --work-tree=$HOME'
### source xprofile
# Make sure this is before the 'exec' command or it won't be sourced.
if [ -z "$DISPLAY" ] || [ -z "$XDG_SESSION_TYPE" ]; then
[ -f /etc/xprofile ] && . /etc/xprofile
[ -f ~/.xprofile ] && . ~/.xprofile
fi
### Wallpaper file
# USED_WALLPAPER_FILE=$HOME/.cache/wallpapers
export CURRENT_WALLPAPER="$HOME/.cache/wallpapers/current_wallpaper.jpg"
# CURRENT_WALLPAPER=''
### function for dotfiles
# I think these functions are more flexible than aliases
# https://www.bowmanjd.com/dotfiles/dotfiles-2-bare-repo/
# https://www.atlassian.com/git/tutorials/dotfiles
DOTFILES="$HOME/.dotfiles"
# REPO="$HOME/"
dot () {
git --git-dir="$HOME/.dotfiles" --work-tree="$HOME" "$@"
}