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.
57 lines
1.3 KiB
57 lines
1.3 KiB
# Initialize Other Alias Files {{{ #
|
|
alias_folder="~/linux-config/aliases"
|
|
alias_type="school git pc"
|
|
for type in $alias_type; do
|
|
. ~/linux-config/aliases/."$type"_aliases
|
|
done
|
|
# }}}
|
|
|
|
# System {{{ #
|
|
alias l='ls -a'
|
|
alias ll='ls -alF'
|
|
alias cs='printf "\033c"'
|
|
shopt -s dotglob
|
|
alias lo="i3-msg exit"
|
|
alias s="systemctl suspend"
|
|
alias sd="sudo shutdown 0"
|
|
alias reb="sudo shutdown -r 0"
|
|
alias hst="history"
|
|
alias rmsw="rm .sw*"
|
|
alias nf="neofetch"
|
|
alias vlm="alsamixer -c 1"
|
|
# }}} System #
|
|
|
|
# Directories {{{ #
|
|
# unalias c
|
|
d() { cd "$@" && ls -a ; }
|
|
cd_up() { d $(printf "%0.s../" $(seq 1 $1 )) ; }
|
|
alias "d."="cd_up"
|
|
alias dd="d ~/Downloads"
|
|
alias cfg="d ~/.config"
|
|
# }}} #
|
|
|
|
ok() { okular $1 ; }
|
|
|
|
# Config {{{ #
|
|
alias lc="d ~/linux-config/"
|
|
alias vv="vi ~/.vimrc"
|
|
alias r=". ~/.bashrc"
|
|
# aliases
|
|
alias lca="d ~/linux-config/aliases"
|
|
alias vb="vi $alias_folder/.bash_aliases"
|
|
alias vs="vi $alias_folder/.school_aliases"
|
|
alias vag="vi $alias_folder/.git_aliases"
|
|
alias vap="vi $alias_folder/.pc_aliases"
|
|
# }}} Config #
|
|
|
|
# redshift
|
|
rs(){ redshift -O $(($1 * 1000)) ; }
|
|
alias rx="redshift -x"
|
|
pand() { pandoc -o ${1%.*}.html $1 && google-chrome ${1%.*}.html ; }
|
|
|
|
# UltiSnips {{{ #
|
|
usnp_dir="~/.vim/plugged/vim-snippets/UltiSnips"
|
|
alias snp="d $usnp_dir"
|
|
vsnp() { vi ~/.vim/plugged/vim-snippets/UltiSnips/"$1".snippets ; }
|
|
alias tm="vi $usnp_dir/texmath.snippets"
|
|
# }}} #
|