~mlb/dotfiles

ref: 277f50b906d580cbcfe359079d0d42482a54890f dotfiles/zsh/alias.zsh -rw-r--r-- 665 bytes
277f50b9Matías Larre Borges Updating plugin list 6 months ago
                                                                                
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
#Selecting ls or gls
case `uname -s` in
  *BSD|Darwin)
  alias ls='ls -G -h'
  ;;
  Linux)
  alias ls='ls --tabsize=0 --literal --color=auto --show-control-chars --human-readable'
  ;;
esac

#Common aliases
alias ll="ls -lh"
alias lla="ls -lha"
alias cp='cp -iv'
alias mv='mv -iv'
alias du='du -h'
alias df='df -h'
alias less="less -R"
alias rm="rm -i"

#better safe than sorry
alias pdflatex="pdflatex -no-shell-escape"

#pianobar (gets rid of warnings)
alias pianobar="pianobar 2> /dev/null"

# kitty
alias icat="kitty +icat"

# get with the times
alias vim="nvim"

function obsess() {
    kitty @ set-tab-title $@
    fasd_cd -d -i "$@" && nvim -S Session.vim
}