1 # .bashrc
2
3 # Source global definitions
4 if [ -f /etc/bashrc ]; then
5 . /etc/bashrc
6 fi
7
8 if [ -f ~/.wal_alias ]; then
9 . ~/.wal_alias
10 fi
11
12
13 # User specific environment
14 if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
15 then
16 PATH="$HOME/.local/bin:$HOME/bin:$PATH"
17 fi
18 export PATH
19
20 export EDITOR=/usr/bin/vim
21
22 # Uncomment the following line if you don't like systemctl's auto-paging feature:
23 # export SYSTEMD_PAGER=
24
25 # User specific aliases and functions
26 if [ -d ~/.bashrc.d ]; then
27 for rc in ~/.bashrc.d/*; do
28 if [ -f "$rc" ]; then
29 . "$rc"
30 fi
31 done
32 fi
33
34 unset rc
35
36 [ -f ~/.fzf.bash ] && source ~/.fzf.bash
37 #export PS1="\e[1;32m\u\e[0m@\h: \$PWD $ "
38 PS1="[\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]]\$ "
39 #PS1='\[\e]1;\s\$ \W\a\e]2;\u@\h\a\]'"$PS1"
40 #export $PS1
41
42 alias start_od="rclone --vfs-cache-mode writes mount ipconedrive: /home/watonsi/OneDrive/"
43 alias pass_server="ssh watsonsi@ffdctpws1.ipc.com"
44 alias shorten-ps1="PS1='\$ '"
45 alias default-ps1="PS1='[\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]]\$ '"
46 alias ls="/usr/bin/exa"
47
48 cat /home/watonsi/.cache/wal/sequences
49 . "$HOME/.cargo/env"
50
51 alias tmux="systemd-run --scope --user tmux"
52 alias tmuxn="tmux new -s $1"
53 alias tmuxa="/bin/tmux attach -t $1"
54 alias tmuxl="/bin/tmux ls"
55 alias tmuxq="echo $TMUX"
56
57 # function to set terminal title
58 function set-title() {
59 if [[ -z "$ORIG" ]]; then
60 ORIG=$PS1
61 fi
62 TITLE="\[\e]2;$*\a\]"
63 PS1=${ORIG}${TITLE}
64 }