You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dotfiles/.bash_aliases

51 lines
1.4 KiB

3 years ago
# improve commands
3 years ago
alias cp="cp -iv" # confirm before overwriting something
alias df='df -h' # human-readable sizes
alias free='free -m' # show sizes in mb
alias np='nano -w pkgbuild'
alias more=less
3 years ago
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
3 years ago
3 years ago
# useful commands
2 years ago
alias pp="paruz -S"
alias pr="paruz -R"
alias upgrade="sudo pacman -Syyu"
alias ls="exa --icons"
alias l="exa --icons --group-directories-first -lh"
alias la="exa --icons --group-directories-first -alh"
alias lt="exa --icons --group-directories-first -lh --tree"
alias llt="exa --icons --group-directories-first -alh --tree"
3 years ago
alias print="printf"
alias q="exit"
2 years ago
alias x="exit"
3 years ago
# nvim edits
3 years ago
alias cfi3="nvim ~/.config/i3/config"
alias cfi3s="nvim ~/.config/i3status/config"
alias cfn="nvim ~/.config/nvim/init.vim"
2 years ago
alias e="nvim"
3 years ago
# cd commands
3 years ago
alias c="cd ~/.config"
3 years ago
alias cuni="cd ~/Documents/Uni/CS && l"
3 years ago
3 years ago
# cli applications
3 years ago
alias yt="youtube-viewer"
3 years ago
# git stuff!
alias gs="git status"
alias gp="git push"
alias ga="git add"
2 years ago
alias gd="git diff origin/master"
3 years ago
#cat is now bat!
alias cat="bat"
2 years ago
# kitty
alias icat="kitty +kitten icat "
function fman() {
man -k . | fzf -q "$1" --prompt='man> ' --preview $'echo {} | tr -d \'()\' | awk \'{printf "%s ", $2} {print $1}\' | xargs -r man' | tr -d '()' | awk '{printf "%s ", $2} {print $1}' | xargs -r man
}