-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_alias
63 lines (52 loc) · 1.59 KB
/
dot_alias
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
# Colorize output
alias diff='diff --color=auto'
alias grep='grep --color=auto'
alias ip='ip -color=auto'
alias ls='ls --color=auto'
# Regular aliases
alias bc='bc -l'
alias lh='ls -lh'
alias lha='ls -lha'
alias cp='cp -v'
alias mv='mv -v'
alias rm='rm -v'
alias less='less -F'
# Create directory named in the ISO 8601 format YYYYMMDDHHmm without separators
alias mkdir_now='date +%Y%m%d%H%M | xargs mkdir'
# Get week number
alias week='date +%V'
# Share current folder on HTTP
# alias webshare='python -c "import SimpleHTTPServer;SimpleHTTPServer.test()"'
alias webshare='python3 -m http.server'
alias :q='echo This is not Vim you silly fool'
alias :w='echo This is not Vim you silly fool'
alias :wq='echo This is not Vim you silly fool'
alias sl="ls | rev"
# alias pls='sudo $(history -p !!); history -d $((HISTCMD-1))'
# OSC aliases
alias isc='osc -A https://api.suse.de'
alias oscb='osc build --ccache --cpio-bulk-download --download-api-only'
alias oscsh='TERM=xterm-256color osc shell'
alias osco='osc_open.py'
# Nvim aliases
alias nview='nvim -R'
# Vim aliases
alias vim='nvim'
alias view='nview'
## Vim aliases for OBS
alias vimc='vim *.changes'
alias vims='vim *.spec'
alias vimse='vim _service'
alias vimd='vim (Dockerfile|Containerfile)'
# cat alias
alias cat='bat --plain --paging=never'
# quilt alias
alias quilt='squilt'
# zypper aliases (complementing zsh plugin)
alias zinfo='zypper info'
alias zrem='sudo zypper remove --clean-deps'
alias zreff='zref --force'
# VSCodium
alias codium='flatpak run com.vscodium.codium --ozone-platform=wayland'
# virsh alias
alias svirsh='virsh -c qemu:///system'