-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot-bashrc
More file actions
121 lines (95 loc) · 3.07 KB
/
dot-bashrc
File metadata and controls
121 lines (95 loc) · 3.07 KB
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
#!/usr/bin/env bash
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH
##############################################################################
# User specific aliases and functions
##############################################################################
# Paths
export PATH="$HOME/Sync/bin/:$PATH"
# For adding extra info files
export INFOPATH=/home/ape/Programming/info/Python-3.12.1/Doc/build/texinfo/:${INFOPATH}
# Commented out : setting TERM can add nonsense characters to emacs terms
# export TERM=xterm-256color
export HISTFILESIZE=100000
export HISTSIZE=10000
# Display hiden files first with dired
export LC_COLLATE="C"
################# PATH #####
export PATH="~/repos/emacs/src":$PATH # am I adding to much to namespace?
export PATH="~/.cargo/bin":$PATH # texlab
############# aliases ##########################
# User specific aliases and functions
alias ema='setsid emacs'
alias em='emacs -nw'
alias e='emacs -nw -q'
alias open='gnome-open'
alias okular='setsid okular'
alias ssh='ssh -X'
#quicker ls
alias ls='ls --color=auto --group-directories-first'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
#sizing
alias sizeDirs='du -hs ./* | sort -rh | head -n 40'
alias sizeDirs_sub='du -hS ./* | sort -rh | head -n 40'
alias rmTrash='rm -rf ~/.local/share/Trash/*'
# ruff linting (pip install ruff)
alias rcheck='ruff check --fix -n'
alias rformat='ruff format -n'
#renames
alias docker='podman'
#helper for showing paths
ep(){
echo $1 | sed 's.:.\n.'g
}
alias epp='ep $PATH'
PS1='\e[1;36m\u\e[0m@\e[1;33m\h\e[0m:\e[1;31m\w\e[0m\n : '
#python path (path projects)
export PYTHONPATH="/home/ape/Dropbox/Programming/projects/radar/rad-lab/src/":$PYTHONPATH
################ things to remember (never uncomment!) ###############
#activate openMPI (only aware of modules in Fedora)
# module load mpi/mpich-x86_64
##running mx3d template
#/usr/bin/mpiexec -np 8 ./mx3d ./parameters.input -pg 8 1 1
################################## END USER DEFINED ###########################
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
if [ -d ~/.bashrc.d ]; then
for rc in ~/.bashrc.d/*; do
if [ -f "$rc" ]; then
. "$rc"
fi
done
fi
unset rc
# # >>> conda initialize >>>
# # !! Contents within this block are managed by 'conda init' !!
# __conda_setup="$('/usr/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
# if [ $? -eq 0 ]; then
# eval "$__conda_setup"
# else
# if [ -f "/usr/etc/profile.d/conda.sh" ]; then
# . "/usr/etc/profile.d/conda.sh"
# else
# export PATH="/usr/bin:$PATH"
# fi
# fi
# unset __conda_setup
# # <<< conda initialize <<<
### PYENV
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
## HASKELL GHCup
[ -f "/home/ape/.ghcup/env" ] && . "/home/ape/.ghcup/env" # ghcup-env