.config/fish/bashrc_aliases
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 |
## use 'nvim' if it exists on system #if [ command -v nvim &> /dev/null ]; then # export EDITOR='vim' #else # export EDITOR='nvim' # alias vim='nvim ' #fi # miscellaneous aliases alias cl='clear ' alias e='exit ' alias q='exit ' alias DIE='shutdown now ' alias cp='cp -i ' # confirm before overwriting a file alias df='df -h ' alias fucking='sudo ' alias bc='bc -l ' # makes bc use 'scale=20' by default alias rot13="tr 'A-Za-z' 'N-ZA-Mn-za-m' " alias iso-date='date --iso-8601=s ' alias now='date +%s ' alias gdb='gdb -q ' # muzzle gdb alias local_webserver='python -m http.server 8001 ' # can change port number #alias hx='/usr/lib/helix/hx ' alias hx='helix ' # may be battery_BAT0 alias bat-stat='upower -i /org/freedesktop/UPower/devices/battery_BAT1 | grep --color=never -E "state|to full|percentage"' alias reload-udev-rules='sudo udevadm control --reload-rules && sudo udevadm trigger' # config editing aliases alias bashrc="$EDITOR ~/.bashrc" alias config_fish="$EDITOR ~/.config/fish/config.fish" alias vimrc="$EDITOR ~/.vimrc" alias init_lua="$EDITOR ~/.config/nvim/init.lua" alias helix_config="helix ~/.config/helix/config.toml" alias nanorc="nano ~/.config/nano/nanorc" # just for fun! alias i3config="$EDITOR ~/.config/i3/config && i3-msg reload && i3-msg restart" alias i3config="$EDITOR ~/.config/i3/config && i3-msg reload && i3-msg restart" #alias swayconfig="$EDITOR ~/.config/sway/config && swaymsg reload" alias swayconfig="cd ~/.config/sway && $EDITOR config" #not_in_vim="echo -e \"You're not in vim doofus!\"" #alias :wq="$not_in_vim" ; alias :q="$not_in_vim" ; alias :x="$not_in_vim" #alias ZZ="$not_in_vim" # TODO make abbreviations #alias rager='ranger '; alias anger='ranger '; alias range='ranger ' #alias rangre='ranger '; alias rangr='ranger ' # <<<-^^^-: common ranger typos #[ "$operating_system" = "linux" ] && alias spellcheck='aspell check ' alias ls="ls --color=auto " alias l="ls --color=auto " alias ll="ls -lh --color=auto " alias la="ls -A --color=auto " alias lla="ls -lhA --color=auto " |