Skip to content

Instantly share code, notes, and snippets.

@Eyre-S
Last active May 5, 2023 12:55
Show Gist options
  • Save Eyre-S/23172a9cf3b9dd00a2100caea28af11e to your computer and use it in GitHub Desktop.
Save Eyre-S/23172a9cf3b9dd00a2100caea28af11e to your computer and use it in GitHub Desktop.
colorls alias & configs
# colorls
#source $(dirname $(gem which colorls))/tab_complete.sh
function cols {
colorls $args
}
function crls {
$args_new = @("--hyperlink", "--light", "--time-style=""+%y/%m-%d %H:%M""") + $args
cols @args_new
}
function ccls {
#theres no git (--gs) support due to slow performance and bugs on Windows
$args_new = @("--sd", "-X") + $args
crls @args_new
}
function cl {
$args_new = @("-lA") + $args
ccls @args_new
}
function cll {
$args_new = @("-l") + $args
ccls @args_new
}
function cla {
$args_new = @("-la") + $args
ccls @args_new
}
function lc {
ccls @args
}
# Set-Alias -Name ls -Value lc # override system ls
function l { cl @args }
function ll { cll @args }
function la { cla @args }
function lgg {
$args_new = @("--tree") + $args
ccls @args_new
}
# colorls
#source $(dirname $(gem which colorls))/tab_complete.sh
alias cols='colorls'
alias crls='cols --hyperlink --light --time-style="+%y/%m-%d %H:%M"'
alias cls='crls --sd -X --gs'
alias cl='cls -lA'
alias cll='cls -l'
alias cla='cls -la'
alias lc='cls'
# alias ls='lc' # override system ls
alias l='cl'
alias ll='cll'
alias la='cla'
alias lgg='cls --tree'
# Main Colors
unrecognized_file: darkkhaki
recognized_file: yellow
executable_file: limegreen
dir: royalblue
# Link
dead_link: red
link: cyan
# special files
socket: darkgray
blockdev: darkgray
chardev: darkgray
# Access Modes
write: orange
read: limegreen
exec: crimson
no_access: lavender
# Age
hour_old: '#009bff'
day_old: '#33a8ff'
no_modifier: '#88b0ff'
# File Size
file_large: orange
file_medium: sandybrown
file_small: burlywood
# Random
report: black
normal: hotpink
user: palevioletred
tree: cyan
empty: yellow
error: red
inode: plum
# Git
addition: chartreuse
modification: darkkhaki
deletion: darkred
untracked: darkorange
unchanged: darkgreen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment