-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases.sh
executable file
·52 lines (43 loc) · 1.47 KB
/
aliases.sh
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
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
alias ll='ls -AlFh'
alias la='ls -A'
alias l='ls -CF'
alias wcl='wc -l'
[[ "$SHELL" == *zsh* ]] && alias history='fc -l 1'
alias rcsrc="source $VERSIONED_RC"
alias tsrc="tmux source-file $DOTFILES/tmux/.config/tmux/tmux.conf"
#[[ -x /usr/bin/python3.8 ]] && alias python3='/usr/bin/python3.8'
#alias python='python3'
alias cod='cd $CODING'
alias xc='xcalib -invert -alter'
alias agi='sudo apt-get install'
alias lsS='ls -Shal'
alias gandalf='firefox -new-window "https://www.youtube.com/watch?v=G1IbRujko-A"'
alias hsghci="cd $CODING/Haskell && ghci"
alias vim="$MY_EDITOR"
alias v="$MY_EDITOR"
alias open_rc="$MY_EDITOR $VERSIONED_RC"
alias temp='vcgencmd measure_temp'
alias rotate='xrandr -o'
alias pdf='evince'
alias img='eog'
alias vim_rc='vim $DOTFILES/nvim/.config/nvim/init.vim'
alias pubip='curl https://ipinfo.io/ip'
alias lesss='less -S'
alias htopu='htop --user $(whoami)'
alias open='xdg-open'
alias tmux='TERM=xterm-256color tmux'
alias padd='fzf_projects_add'
alias pcd='fzf_projects_cd'
alias zrg="rg -z"
alias findn="find . -name"
command -v rg &>/dev/null && rgl() { rg --color ansi "$@" | less -R }
export MY_EDITOR
[[ -n "$TMUX" ]] && tmux_update_display