diff options
author | A Farzat <a@farzat.xyz> | 2024-02-26 14:40:40 +0900 |
---|---|---|
committer | A Farzat <a@farzat.xyz> | 2024-10-14 14:40:40 +0900 |
commit | ca38e20ca116d89984275014dca8cc2bc9d7a1e2 (patch) | |
tree | e73e6dc1e8f6f242f1bb35775b1c1012da2c0c20 /halfway/aliases.zsh | |
parent | 9a717f264274c0ce43f273c431a859e2d49d83e6 (diff) | |
download | zsh-ca38e20ca116d89984275014dca8cc2bc9d7a1e2.tar.gz zsh-ca38e20ca116d89984275014dca8cc2bc9d7a1e2.zip |
Add aliases
Diffstat (limited to 'halfway/aliases.zsh')
-rw-r--r-- | halfway/aliases.zsh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/halfway/aliases.zsh b/halfway/aliases.zsh new file mode 100644 index 0000000..9001753 --- /dev/null +++ b/halfway/aliases.zsh @@ -0,0 +1,24 @@ +# Edit bash history. +alias mbashhistory='$EDITOR ~/.bash_history' +# Edit zsh history. +alias mhistory='$EDITOR $ZDOTDIR/.zsh_history' +# Edit and view using $EDITOR. +alias v='$EDITOR' +alias edit='$EDITOR' +alias view='$EDITOR -M' +# Edit zshrc. +alias mzshrc='$EDITOR -S "$ZDOTDIR/Session.vim"' +# Edit $EDITOR configuration files. +alias mvimrc='$EDITOR -S "$XDG_CONFIG_HOME/nvim/Session.vim"' +# List swap files +alias ls-swap='la "${XDG_STATE_HOME:-$HOME/.local/state}/nvim/swap/"' +# Edit the ledger file. +alias mledger='$EDITOR -S $XDG_DATA_HOME/ledger/Session.vim' +# Edit all files in git dir. +alias vgit='git ls-files -z | xargs -0 $EDITOR' +# Suspend the machine. +alias ssuspend='systemctl suspend' +# Restore cursor to original colour and transparent behaviour before wal. +alias restore_cursor="printf '%b' '\e]12'" +# General. +alias la='ls -lAh --color=auto' |