summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authoradam <56338480+adastx@users.noreply.github.com>2022-10-08 22:50:19 +0200
committeradam <56338480+adastx@users.noreply.github.com>2022-10-08 22:50:19 +0200
commitb0da3cf5ec6121fc481d5b5315c4dc34ac423bb4 (patch)
tree1749d2e599b138c2d174fedefa92d3278d8cf1d9 /.config
parente287203b1d94ed85f9de62e180f6d9bda35bd84e (diff)
shell: moved aliases, bashrc cleanup
Diffstat (limited to '.config')
-rw-r--r--.config/aliases30
1 files changed, 30 insertions, 0 deletions
diff --git a/.config/aliases b/.config/aliases
new file mode 100644
index 0000000..6348370
--- /dev/null
+++ b/.config/aliases
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+alias vim="nvim"
+alias sudo='doas'
+alias sudoedit='doasedit'
+
+alias q='exit'
+alias c='clear'
+alias nf='pfetch'
+alias t='todo.sh'
+
+alias ls='exa'
+alias l='ls -la'
+alias lt='ls -T'
+alias lh="ls -1dI '.|..' .*"
+
+alias gs='git status'
+alias lg="git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(cyan)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"
+
+alias config='/usr/bin/git --git-dir=/home/adam/.cfg/ --work-tree=/home/adam'
+alias cs='config status'
+alias clg="config log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold yellow)%d%C(reset)' --all"
+
+alias shrc="nvim $HOME/.bashrc"
+alias vars="nvim $HOME/.bash_profile"
+alias wmrc="nvim $XDG_CONFIG_HOME/i3/config"
+alias vimrc="nvim --cmd ':cd $XDG_CONFIG_HOME/nvim/ | edit lua/plugins.lua'"
+alias initrc="nvim $XDG_CONFIG_HOME/X11/xinitrc"
+alias barconf="nvim $XDG_CONFIG_HOME/polybar/config.ini"
+alias aliases="nvim $XDG_CONFIG_HOME/aliases"