-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
87 lines (64 loc) · 1.96 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
87
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
#txtred="\[\e[1;32m\]"
#txtcyn="\[\e[1;33m\]"
export PS1="\\n\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\\npucaj$ "
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
export GITAWAREPROMPT=~/.bash/git-aware-prompt
source "${GITAWAREPROMPT}/main.sh"
printf "$(tput setaf 2)$(date +%d.%m.%Y.\ %H:%M:%S)\n$(tput setaf 0)"
alias branches="git branch -v"
alias remotes="git remote -v"
alias denter="ssh root@development"
alias menter="ssh piss@off"
alias towork="cd ~/work/folder_dinamo_hajduk.com && ll"
alias tofer="cd ~/Documents/FER"
export PYTHONIOENCODING=utf-8
alias vim="nvim"
alias vi="nvim"
# bash history, took me 5 years to do this one. Idiot.
export HISTCONTROL=ignoredups:erasedups # no duplicate entries
export HISTSIZE=100000 # big big history
export HISTFILESIZE=100000 # big big history
# ln misbehaves
# ln misbehaves
alias pycharm="/opt/pycharm-2017.1.1/bin/pycharm.sh &"
shopt -s histappend # append to history, don't overwrite it
# Save and reload the history after each command finishes
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
# Weather command, for Zagreb
alias weather="curl -s wttr.in/Zagreb | head -7"
alias weather_today="curl -s wttr.in/Zagreb | head -17"
# Recursive grep c
# urrent folder && its files
recursiveGrep() {
grep "$@" -nr .
}
alias rgrep="recursiveGrep"
alias copy="xclip -selection clipboard"
alias git="hub"
function cd_
{
cd "$@"
pwd > ~/.last_dir
}
cd `cat ~/.last_dir`
function rldesk
{
echo "nes razbojnice"
}
function volumeup
{
amixer -q sset 'Master' 5%+
}
function volumedown
{
amixer -q sset 'Master' 5%-
}
# Python autocomplete
export PYTHONSTARTUP=~/.pythonrc