-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
86 lines (64 loc) · 2.15 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
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
# .bashrc
# pr0PM's .bashrc
# 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
# Uncomment the following line if you dont like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
####################
#||Custom Aliases||#
####################
# Lazy aliases
alias ls='ls --color=auto --group-directories-first -t'
alias l='ls -lAht'
alias py='python3'
alias jnote='jupyter-notebook'
alias cpp='cd ~/Projects/cpp'
alias cl='clear'
alias vi='vimx'
alias vim='vimx'
alias ..='cd ..'
alias ip='ip -c'
#alias nvim='~/s_ware/nvim.appimage'
# list only directories
alias d='find . -type d'
# Give this an arg in the form of a link to download
alias ydl='youtube-dl -f bestaudio[ext=m4a] --extract-audio'
# Just to give one more chance InCaSE
alias rm='rm -i'
# My music script
alias bajao='~/playMusic.sh'
# Attach to new tmux session /give it a name
alias tmuxn='tmux new-s -t'
# activate py venev
alias act='source bin/activate'
# Activate pihole container after killing dnsmasq
# alias pih='sudo ~/pi.sh'
#\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\
# Added a new prompt copied from _kunalnagar
git_prompt() {
local branchName="";
# Check if the current directory is in a Git repository.
if git rev-parse --git-dir > /dev/null 2>&1; then
branchName="$(git symbolic-ref --quiet --short HEAD 2> /dev/null || \
git rev-parse --short HEAD 2> /dev/null || \
echo '(unknown)')";
echo -e "(${branchName})";
else
return;
fi;
}
PS1="\[\e[0;36m\]\u at \w \[\e[m\] \[\e[0;33m\]\$(git_prompt)\n\[\e[m\]";
#\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\
# D O N ' T D E V I A T E F R O M T H E P A T H
export JAVA_HOME=/home/pr0PM/s_ware/jdk-14/
export PATH=$PATH:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/pr0PM/.local/bin:/var/lib/snapd/snap/bin:$JAVA_HOME/bin:/usr/local/go/bin
# installing starship
eval "$(starship init bash)"