-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
76 lines (57 loc) · 1.82 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
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Make sure ^[[200~ is not a part of the paste output from the clipboard
bind 'set enable-bracketed-paste off'
# Sets az devops PAT to env var
# Need to move. This requires auth which is very annoying as soon as you open a terminal
#export AZURE_DEVOPS_EXT_PAT=$(pass sis/devops/pat)
alias PAGER=less
alias cl=clear
alias ls='ls --color=auto'
alias grep='grep --color=auto'
#PS1='[\e[1m\W]\$ \e(B\e[m'
#PS1='\[\e[32m\][\e[1m\W]\$ \e(B\e[m'
# \e[3#1m Start color scheme (replace #1 with a digit 0-7 repreenting a
# color)
# \e[1m Bold text on
# \e(B\e[m Reset text attributes
#export PS1="\e[32m\e[1m\W $ \e(B\e[m"
#export PS1='\e[32m\e[1m\W $(git branch --show-current 2>/dev/null | sed "s/\(.*\)/(\\1) /")$ \e(B\e[m'
export PS1='\e[32m\e[1m\W \[\e[94m\]$(git branch --show-current 2>/dev/null | sed "s/\(.*\)/(\\1)/")\[\e[m\] $ '
# Environment variables
export REPOS="${HOME}/repos"
export EDITOR=nvim
export BROWSER=firefox
export NOTES="${HOME}/notes"
# Path
export DOTNETTOOLS='~/.dotnet/tools'
export SCRIPTS="${HOME}/.scripts"
export XDG_CONFIG_HOME="${HOME}/.config"
export NPM_PATH='~/.npm-global/bin'
export PATH="$PATH:$DOTNETTOOLS:$SCRIPTS:$XDG_CONFIG_HOME:$NPM_PATH"
# Clipboard
alias cb='xclip -sel clip'
# Pacman
alias installu='sudo pacman -Syu'
alias install='sudo pacman -Sy'
set -o vi # replace readline with vi mode
# Git
alias config='git --git-dir=$HOME/.git/ --work-tree=$HOME'
alias c=config
alias g=git
# Wifi
alias wifi='iwctl'
alias connect-wifi='~/.scripts/connect-wifi.sh'
alias connect-mobile='connect-wifi martin'
alias ll='ls -la'
alias n='nvim'
# Scripts
alias dp='delete-prompt'
# .bashrc
alias rbc='source ~/.bashrc'
alias ebc='$EDITOR ~/.bashrc'
# i3/.config
alias i3conf='$EDITOR ~/.config/i3/config'